Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build issues by adding pyproject.toml #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cshimmin
Copy link

Fixes #38.

Previously, it was not always possible to install lap by simply listing it as a dependency e.g. in a requirements.txt file. This is because the setup.py build system depends on numpy.distutils, and so numpy has to be installed before setup.py could run successfully. This is not always guaranteed even if doing something like pip install numpy lap.

By using pyproject.toml, we can specify that numpy>=1.10.1 and cython>=0.21 are requirements for the build step. These will be installed in a build-only environment during the setup. Numpy is also required at runtime, so it is now listed as a dependency as well.

Previously, it was not always possible to install lap by simply listing
it as a dependency e.g. in a requirements.txt file. This is because the
setup.py build system depends on numpy.distutils, and so numpy has to be
installed before setup.py could run successfully. This is not always
guaranteed even if doing something like `pip install numpy lap`.

By using pyproject.toml, we can specify that numpy>=1.10.1 and
cython>=0.21 are requirements for the build step. These will be
installed in a build-only environment during the setup. Numpy is also
required at runtime, so it is now listed as a dependency as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem installing lap if numpy not already installed
1 participant