-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
sage_setup: Remove import-time dependency (setup_requires
) on pkgconfig
, numpy
#30580
Comments
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
Author: Matthias Koeppe |
Dependencies: #30779 |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:6
Ready for review. |
This comment has been minimized.
This comment has been minimized.
Changed dependencies from #30779 to none |
comment:9
the 1st line of the output seems to try to say something about
|
comment:10
Replying to @dimpase:
This is from
This gives an (ignored) error when |
comment:11
Do we need to support gcc 4.8 ? The last release of gcc 4.8.* was over 5 years ago. |
comment:12
lgtm - the gcc version could be bumped elsewhere |
Reviewer: Dima Pasechnik |
comment:13
Replying to @dimpase:
Yes until we drop ubuntu trusty and similar. |
comment:14
Thanks for the review! I have opened #30876 for the issue with the unset |
comment:15
Merge conflict |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Dependencies: #30709 |
Just loading
src/setup.py
already pulls in Cython,numpy
, andpkgconfig
viasage_setup
, so these distributions would have to be declared as[build_system] requires
insrc/pyproject.toml
(exsetup_requires
)By moving some computations from import-time to runtime, we get rid of this early dependency on
pkgconfig
,numpy
. (They are, of course, still required for building the package.)This makes
setup.py sdist
work using a Python that does not havenumpy
orpkgconfig
installed. To test (with a system python that hasCython
):(We also reduce the load-time dependency on Cython; however, we do not address the whole load-time dependency of
setup.py
onCython
(viasage_setup.find
, which usesopen_source_file
andis_package_dir
) in this ticket. This is best done after #28925.)Depends on #30709
CC: @tobiasdiez @jhpalmieri @kiwifb @dimpase
Component: build
Author: Matthias Koeppe
Branch/Commit:
8f04684
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/30580
The text was updated successfully, but these errors were encountered: