-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
make sagelib use setuptools instead of distutils #13190
Comments
Dependencies: #13031 |
comment:3
I would imagine that you get problems similar to #12659 . Have you tried this out? |
comment:4
Replying to @mwhansen:
Do you mean the sdist issues? No, I have not tried them yet, but I wouldn't doubt that there may be issues with them. Also, as noted in deps, there is an issue with parallel instances of setuptools, so either deps has to be hacked to force sage into the serial build, or we depend on #12994 (my vote is the later, since it is cleaner). |
comment:5
I've decided to make #12994 a dependency -- makes it much easier to add setuptool packages to the build system. |
comment:7
There are some issues with using relative paths with setuptools (which we want for relocation purposes). #13197 fixes these issues. |
comment:10
Replying to @jdemeyer:
This should only require #13031.
This is more or less #12659 after switching to setuptools, and is where the other dependencies creep up (they aren't strictly necessary, but the alternative is to hack around setuptools, which is less preferable than patching it IMO). I'll rework the patch to only do A once we have a 5.4 beta (mainly because #13031 more or less needs to be rebased with every development release). |
apply to root repo |
Attachment: trac13190_root.patch.gz Attachment: trac13190_scripts.patch.gz apply to scripts repo |
comment:11
ok, rebased and only does the switch to setuptools (doesn't switch to |
Attachment: trac13190_library.patch.gz apply to sage library |
comment:13
Are we trying to make this happen before the git transition or afterward? |
comment:14
Certainly after, although I'm not currently convinced that we should proceed in this direction. |
comment:24
Replying to @jdemeyer:
I recently learned about the (almost undocumented) setuptools options |
Changed dependencies from #20108 to none |
comment:26
Also, it seems that Sage is no longer using either |
comment:27
I forget, what is the difference between Also I do want to use |
comment:28
Replying to @embray:
There is no problem with There is a problem with |
comment:29
Replying to @embray:
Mainly that the latter requires a |
Changed author from R. Andrew Ohana to none |
comment:30
Time to revive this ancient ticket. |
Dependencies: #29702 |
Last 10 new commits:
|
Commit: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:37
This ticket is superseded by #29950 and can be closed. |
Reviewer: Dima Pasechnik |
Currently the sage library uses distutils. Switching to setuptools will give us the
setup.py develop
command, which bypasses the need to rebuild the sage library when modifying python files.See also:
#29845 - PEP 517 buildapi for sage_setup
References:
https://stackoverflow.com/questions/3779915/why-does-python-setup-py-sdist-create-unwanted-project-egg-info-in-project-r
Depends on #29702
Depends on #29803
CC: @kini @jdemeyer @robertwb @kcrisman @mwhansen @jhpalmieri @embray @dimpase @kiwifb
Component: build
Branch/Commit: u/mkoeppe/make_sagelib_use_setuptools_instead_of_distutils @
93bbbfe
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/13190
The text was updated successfully, but these errors were encountered: