fast-notebook-4005
02/15/2022, 9:56 PMTraceback (most recent call last):
File "/srv/submodules/obscura-plugins/plugins/setup.py", line 4, in <module>
from Cython.Build import cythonize
ModuleNotFoundError: No module named 'Cython'
Exception message: Command '['/usr/bin/python3.7', '/srv/submodules/obscura-plugins/plugins/setup.py', 'build_ext', '--inplace', '--verbose']' returned non-zero exit status 1.
is there a "simple" fix to get this working under 3.7? if I have to upgrade Pants and/or Cython to get it to work I will, but my goal in the short term is to do the minimum necessary to get upgraded to 3.7, and then tackle the rest of the tech debt separately
pants.toml: http://ix.io/3PIe
register.py of the plugin: http://ix.io/3PIi
compile_cython.py: http://ix.io/3PIj
BUILD containing the Cython target: http://ix.io/3PIk
the setup.py living next to that BUILD file, where the exception above is being thrown from: http://ix.io/3PImenough-analyst-54434
02/16/2022, 12:16 AM/srv/submodules/obscura-plugins/plugins/setup.py
represent your code or third party code?enough-analyst-54434
02/16/2022, 12:17 AMsetup_requires
? If its not your code can you offer up a PyPI link?fast-notebook-4005
02/16/2022, 12:44 AMsetup_requires
anywherefast-notebook-4005
02/16/2022, 12:52 AMsetup_requires
somewhere below that doesn't seem like it would helpenough-analyst-54434
02/16/2022, 1:07 AMenough-analyst-54434
02/16/2022, 1:07 AMenough-analyst-54434
02/16/2022, 1:08 AMenough-analyst-54434
02/16/2022, 1:11 AMpyproject.toml
. So try adding a pyproject.toml
to that distribution (you can keep setup.py
, that will still get run) with this contents:
[build-system]
requires = ["setuptools>=40.8.0", "wheel", "Cython==0.28.2"]
build-backend = "setuptools.build_meta:__legacy__"