snafu$ cd /tmp
snafu$ python3.11 -m venv venv
snafu$ source venv/bin/activate
(venv) snafu$ pip install uta-align
Looking in indexes: https://pypi.shr.myome.info/simple
Collecting uta-align
Downloading uta-align-0.2.0.tar.gz (268 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 268.1/268.1 kB 5.0 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [54 lines of output]
Error compiling Cython file:
------------------------------------------------------------
...
INSERTION.inverse = DELETION
DELETION.inverse = INSERTION
SEQ_MATCH.inverse = SEQ_MATCH
SEQ_MISMATCH.inverse = SEQ_MISMATCH
cpdef tuple BAM_OPS = (MATCH, INSERTION, DELETION, SKIPPED, SOFT_CLIP, HARD_CLIP, PADDING, SEQ_MATCH, SEQ_MISMATCH)
^
------------------------------------------------------------
uta_align/align/cigar_utils.pyx:62:6: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
Error compiling Cython file:
------------------------------------------------------------
...
# Create mapping from ord(char_op) to op
_temp_map = [None]*256
for _op in BAM_OPS:
_temp_map[_op.code] = _op
cpdef tuple BAM_OP_CHAR_MAP = tuple(_temp_map)
^
------------------------------------------------------------
uta_align/align/cigar_utils.pyx:69:6: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
Compiling uta_align/align/algorithms.pyx because it changed.
Compiling uta_align/align/cigar_utils.pyx because it changed.
[1/2] Cythonizing uta_align/align/algorithms.pyx
[2/2] Cythonizing uta_align/align/cigar_utils.pyx
Traceback (most recent call last):
File "/tmp/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/tmp/venv/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 "/tmp/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-n92a3hee/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-n92a3hee/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-n92a3hee/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 52, in <module>
File "/tmp/pip-build-env-n92a3hee/overlay/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
File "/tmp/pip-build-env-n92a3hee/overlay/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: uta_align/align/cigar_utils.pyx
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.