-
-
Notifications
You must be signed in to change notification settings - Fork 628
pkgs/sage-conf_pypi
: Skip configure/make when SAGE_CONF_FILE
or SAGE_CONF_ENV_FILE
are set
#37620
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
base: develop
Are you sure you want to change the base?
Conversation
@kiwifb Is this roughly what would enable you to use sage-conf from PyPI? |
I'll have to try it, but on the description, that would avoid most of the patching I do. That could motivate me, to fix all the issues that come with trying to ship the |
pkgs/sage-conf_pypi/setup.py
Outdated
else: | ||
# build_scripts skips empty files, so create something nonempty | ||
with open(os.path.join(HERE, 'bin', 'sage-env-config'), 'w') as f: | ||
print("# -*- shell-script -*-", file=f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am perfectly happy with it being skipped. I am currently not shipping this file in any way shape or form and everything is fine. The main consumer at runtime is the sage script and it can cope with it not being present
Line 176 in e417e22
# As of Issue #22731, sage-env-config is optional. |
So, I'd rather skip it rather than having a token file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that after skipping the installation, setuptools gives an error because the file is named in the metadata but is not present...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably why I currently remove it from setup.cfg. I must have seen that error some time ago. I guess, that acceptably would avoid the patching then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather skip it rather than having a token file.
Done in d85432a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get this in please.
Documentation preview for this PR (built with commit 7ccab80; changes) is ready! 🎉 |
54e22ea
to
97de68a
Compare
97de68a
to
26dbbfb
Compare
a192a46
to
cc26a34
Compare
cc26a34
to
8d458bf
Compare
SAGE_CONF_FILE
or SAGE_CONF_ENV_FILE
are setpkgs/sage-conf_pypi
: Skip configure/make when SAGE_CONF_FILE
or SAGE_CONF_ENV_FILE
are set
… do not run configure/make
…ONF_ENV_FILE=/dev/null
8d458bf
to
6376b50
Compare
The distribution package sage-conf as found on PyPI is the version from pkgs/sage-conf_pypi, which creates a SAGE_ROOT and then runs
configure
andmake
.Here we make the same distribution package usable in a different way: Set
SAGE_CONF_FILE
or/andSAGE_CONF_ENV_FILE
to whatever static file has your configuration, or just/dev/null
, and that will be taken.This may be a useful simplification for downstream packagers.
We also add another environment variable:
SAGE_CONF_CONFIGURE_ARGS
and add some documentation.📝 Checklist
⌛ Dependencies