Skip to content

Cython missing as a build dependency #232

@p-j-smith

Description

@p-j-smith

Hi, thanks for making ExeTera, it seems like a very cool project!

I just tried to install ExeTera in a new environment with:

python -m pip install -e .

But I got the following error:

Obtaining file:///Users/paul/github/ExeTera
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/Caskroom/miniconda/base/envs/exetera/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/paul/github/ExeTera/setup.py'"'"'; __file__='"'"'/Users/paul/github/ExeTera/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/3x/026zvn0n35v9cg_b27xv40vm0000gn/T/pip-pip-egg-info-ecyeds8a
       cwd: /Users/paul/github/ExeTera/
  Complete output (5 lines):
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/Users/paul/github/ExeTera/setup.py", line 3, in <module>
      from Cython.Build import cythonize
  ModuleNotFoundError: No module named 'Cython'
  ----------------------------------------
WARNING: Discarding file:///Users/paul/github/ExeTera. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

This is because Cython.build.cythonize is used in the setup.py. You can add a pyproject.toml file to specify Cython as a steup dependency:

[build-system]
requires = ["setuptools", "wheel", "Cython"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions