-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Description
Is it possible to get a wheel for alpine?
docker run --rm python:3.11-alpine pip install cityhash
Collecting cityhash
Downloading cityhash-0.4.8.tar.gz (246 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 246.3/246.3 kB 2.8 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: cityhash
Building wheel for cityhash (pyproject.toml): started
Building wheel for cityhash (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for cityhash (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [145 lines of output]
/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
system: posix-64
available CPU flags: ['aes', 'afp', 'asimd', 'asimddp', 'asimdfhm', 'asimdhp', 'asimdrdm', 'atomics', 'bf16', 'cpuid', 'crc32', 'dcpodp', 'dcpop', 'dit', 'evtstrm', 'fcma', 'flagm', 'flagm2', 'fp', 'fphp', 'frint', 'ilrcpc', 'jscvt', 'lrcpc', 'paca', 'pacg', 'pmull', 'sb', 'sha1', 'sha2', 'sha3', 'sha512', 'uscat']
environment: PATH=/tmp/pip-build-env-i31nvleq/overlay/bin:/tmp/pip-build-env-i31nvleq/normal/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, HOSTNAME=e5a92ad3bf2b, LANG=C.UTF-8, GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D, PYTHON_VERSION=3.11.13, PYTHON_SHA256=8fb5f9fbc7609fa822cb31549884575db7fd9657cbffb89510b5d7975963a83a, HOME=/root, PIP_BUILD_TRACKER=/tmp/pip-build-tracker-g2xjkqus, PYTHONNOUSERSITE=1, PYTHONPATH=/tmp/pip-build-env-i31nvleq/site, PEP517_BUILD_BACKEND=setuptools.build_meta
building for target architecture: aarch64
building extension using Cython
running bdist_wheel
running build
running build_ext
Error compiling Cython file:
------------------------------------------------------------
...
PyObject_GetBuffer(data, &buf, PyBUF_SIMPLE)
result = c_Hash128(<const char*>buf.buf, buf.len)
PyBuffer_Release(&buf)
else:
raise _type_error("data", ["basestring", "buffer"], data)
return (long(result.first) << 64ULL) + long(result.second)
^
------------------------------------------------------------
src/cityhash.pyx:231:12: 'long' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
PyObject_GetBuffer(data, &buf, PyBUF_SIMPLE)
result = c_Hash128(<const char*>buf.buf, buf.len)
PyBuffer_Release(&buf)
else:
raise _type_error("data", ["basestring", "buffer"], data)
return (long(result.first) << 64ULL) + long(result.second)
^
------------------------------------------------------------
src/cityhash.pyx:231:43: 'long' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
PyObject_GetBuffer(data, &buf, PyBUF_SIMPLE)
result = c_Hash128WithSeed(<const char*>buf.buf, buf.len, tseed)
PyBuffer_Release(&buf)
else:
raise _type_error("data", ["basestring", "buffer"], data)
return (long(result.first) << 64ULL) + long(result.second)
^
------------------------------------------------------------
src/cityhash.pyx:265:12: 'long' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
PyObject_GetBuffer(data, &buf, PyBUF_SIMPLE)
result = c_Hash128WithSeed(<const char*>buf.buf, buf.len, tseed)
PyBuffer_Release(&buf)
else:
raise _type_error("data", ["basestring", "buffer"], data)
return (long(result.first) << 64ULL) + long(result.second)
^
------------------------------------------------------------
src/cityhash.pyx:265:43: 'long' is not a constant, variable or function identifier
Compiling src/cityhash.pyx because it changed.
[1/1] Cythonizing src/cityhash.pyx
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/usr/local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 435, in build_wheel
return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 423, in _build
return self._build_with_temp_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 404, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "<string>", line 146, in <module>
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 115, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 1102, in run_command
super().run_command(command)
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/command/bdist_wheel.py", line 370, in run
self.run_command("build")
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 1102, in run_command
super().run_command(command)
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 1102, in run_command
super().run_command(command)
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 368, in run
self.build_extensions()
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 484, in build_extensions
self._build_extensions_serial()
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 510, in _build_extensions_serial
self.build_extension(ext)
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/Cython/Distutils/build_ext.py", line 131, in build_extension
new_ext = cythonize(
^^^^^^^^^^
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
File "/tmp/pip-build-env-i31nvleq/overlay/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1298, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: src/cityhash.pyx
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cityhash
Failed to build cityhash
ERROR: Could not build wheels for cityhash, which is required to install pyproject.toml-based projects
Metadata
Metadata
Assignees
Labels
No labels