-
-
Notifications
You must be signed in to change notification settings - Fork 491
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.env.sage_include_directories: Don't use distutils and SAGE_LIB #33137
Comments
comment:1
|
Commit: |
Branch: public/ticket-33137 |
comment:2
une tentative. New commits:
|
comment:3
I'd have done the first part last night [exactly that code] but I couldn't push to trac. Turns out my ssh key is now too old and needs replacing :) |
comment:4
Salut, pour le reste, on peut aussi virer le bloc, plutot que de mettre RuntimeError |
comment:5
Replying to @fchapoton:
Toi, tu vas encore te faire taper sur les doigts parce que tu parle Français sur un système où l'Anglais est la "lingua Franca" (je sais, c'est bizarre d'écrire ça). Otherwise, I am not too fussed about removing that block. I cannot see a test showing what it is supposed to catch and how. Antonio says it is a dead code path and there is clearly no proof otherwise anywhere. |
Dependencies: #32873 |
This comment has been minimized.
This comment has been minimized.
comment:8
apparemment le changement dans features est en conflit avec #32873 |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:10
Replying to @fchapoton:
Yes and I positively reviewed that ticket. I thought we were dealing with something different. In another ticket of mine about doctest failures on distro, Matthias pointed me out to three tickets - one of which I reviewed, again. It seems to me there are far too many tickets of that kind not included in 9.5.rc0. It is hard to figure out what is already on trac. |
comment:12
From
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Frédéric Chapoton, Matthias Koeppe |
comment:18
Replying to @mkoeppe:
Nevertheless, I have put |
This comment has been minimized.
This comment has been minimized.
Removed branch from issue description; replaced by PR #35118. |
src/sage/env.py
usesdistutils.sysconfig.get_python_inc()
which is deprecated, it has no replacement in sysconfig.Suggestion from fbissey: "we could use sysconfig.get_config_var('INCLUDEPY') which should give the same value." #33135 comment:7
We also remove the use of
SAGE_LIB
in preparation of namespace packages.This is the last use of
distutils
in the Sage library, except for uses insrc/sage/features/__init__.py
andsrc/sage/misc/cython.py
, which are merely fallbacks whensetuptools
is not present.Comment from arojas: "I don't see any code in sagelib or cython that would emit this. Is this still needed at all?"
Follow-up: Once these uses of distutils are removed, their modules can be removed from the regex in the call to filterwarnings introduced by #33135.
Part of
distutils
SAGE_LIB
andSAGE_EXTCODE
variablesDepends on #32873
CC: @antonio-rojas @dimpase
Component: misc
Author: Frédéric Chapoton, Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/33137
The text was updated successfully, but these errors were encountered: