-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
spkg-configure.m4 for python: tzdata, pytest, vcversioner #36674
base: develop
Are you sure you want to change the base?
Conversation
Note that #36129 is going to remove vcversioner, so perhaps this part can be omitted |
tzdata can be skipped in most cases because it provides timezone data that's already installed on every system; the system python will be configured to use the system timezone data. In Gentoo the tzdata package literally does nothing. To check, we would need to run some zoneinfo command to see if it fails. I once started to write an autoconf macro for that but it's probably overkill here. Something like |
"python" should probably be |
Maybe we don't have to think about |
I agree |
Rebase on top of #36129 with no vcversioner and with tzdata disabled by I think it's about time we switch the default to
|
Yes please
Hm? No, we have working rpy2, which is installed whenever there's a compatible system R. |
And when there's not, we build one for no reason. What I should have said though is "switch R to optional" rather than disabled. Then if people want to use R, they install R. |
No, we don't. R is a dummy package. |
Of course it is. I'm going to take a nap. |
In addition to adding tzdata to SAGE_SPKG_CONFIGURE([rpy2], [
SAGE_PYTHON_PACKAGE_CHECK([rpy2])
], [dnl REQUIRED-CHECK
AC_REQUIRE([SAGE_SPKG_CONFIGURE_R])
dnl rpy2 is only needed when there is a usable system R
AS_VAR_IF([sage_spkg_install_r], [yes], [dnl
AS_VAR_IF([sage_use_system_r], [installed], [dnl
dnl Legacy SPKG installation of r
AS_VAR_SET([SPKG_REQUIRE], [yes])
], [dnl No system package, no legacy SPKG installation
AS_VAR_SET([SPKG_REQUIRE], [no])
])
])
]) It looks like tzlocal and pytz_deprecation_shim could benefit too, for the people who don't always pass |
Should rebase and remove vcversioner now |
setuptools-scm-7 have built-in support instead
ec65fbf
to
9959f98
Compare
Documentation preview for this PR (built with commit 9959f98; changes) is ready! 🎉 |
also, remove leftovers of
setuptools_scm_git_archive
, left in the tree by an oversight.This is continuation of #36332