Message368619
The normal way to do this (for make/autoconf) is to add a --with-tzpath argument to configure.ac, and a make variable to pass it to the compilation of anything that needs it. You can then access it from Python code with sysconfig.get_config_var().
In configure.ac, AC_SUBST(TZPATH) makes configure replace @TZPATH@ in the Makefile with the value you set to $TZPATH in configure.ac. You then either add that to the global PY_CFLAGS_NODIST, or modify the build rule for the module that needs it to pass it along. (See for example how GITTAG/GITVERSION/GITBRANCH are passed to Modules/getbuildinfo.o.)
AC_ARG_WITH() is how you add a new --with-* argument to configure. The usual way people do this is by copying one of the other AC_ARG_WITH blocks and modifying it to suit their needs. It's a mixture of m4 and shell that can be a bit annoying to get right, but it's pretty flexible. Run autoreconf to regenerate configure. You can manually check that the shell in configure makes sense.
Something will have to be done on the Windows side as well, but I'm not sure what. Adding Steve Dower for that. |
|
Date |
User |
Action |
Args |
2020-05-11 08:23:55 | twouters | set | recipients:
+ twouters, lemburg, belopolsky, steve.dower, p-ganssle |
2020-05-11 08:23:55 | twouters | set | messageid: <1589185435.78.0.0419631617169.issue40503@roundup.psfhosted.org> |
2020-05-11 08:23:55 | twouters | link | issue40503 messages |
2020-05-11 08:23:55 | twouters | create | |
|