LIBDEST= $(SCRIPTDIR)/python$(VERSION)
INCLUDEPY= $(INCLUDEDIR)/python$(LDVERSION)
CONFINCLUDEPY= $(CONFINCLUDEDIR)/python$(LDVERSION)
+BASE_LIB= lib
# Symbols used for using shared libraries
SHLIB_SUFFIX= @SHLIB_SUFFIX@
-DEXEC_PREFIX='"$(exec_prefix)"' \
-DVERSION='"$(VERSION)"' \
-DVPATH='"$(VPATH)"' \
+ -DBASE_LIB='"$(BASE_LIB)"' \
-o $@ $(srcdir)/Modules/getpath.c
Modules/python.o: $(srcdir)/Modules/python.c
#define LANDMARK L"os.py"
#endif
+#ifndef BASE_LIB
+#define BASE_LIB "lib"
+#endif
+
static wchar_t prefix[MAXPATHLEN+1];
static wchar_t exec_prefix[MAXPATHLEN+1];
static wchar_t progpath[MAXPATHLEN+1];
_pythonpath = _Py_char2wchar(PYTHONPATH, NULL);
_prefix = _Py_char2wchar(PREFIX, NULL);
_exec_prefix = _Py_char2wchar(EXEC_PREFIX, NULL);
- lib_python = _Py_char2wchar("lib/python" VERSION, NULL);
+ lib_python = _Py_char2wchar(BASE_LIB "/python" VERSION, NULL);
if (!_pythonpath || !_prefix || !_exec_prefix || !lib_python) {
Py_FatalError(
target=all
%endif
LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH \
- make %{?_smp_mflags} $target
+ make %{?_smp_mflags} BASE_LIB=%{_lib} $target
%check
# SUSE's gdb breaks test_gdb by producing spurious output (zypper suggestions)
--with-ensurepip=no \
--enable-loadable-sqlite-extensions
-make %{?_smp_mflags} # DESTDIR=$RPM_BUILD_ROOT
+make %{?_smp_mflags} BASE_LIB=%{_lib}
%check
# Limit virtual memory to avoid spurious failures