diff options
author | atomlong | 2021-10-23 17:55:22 +0800 |
---|---|---|
committer | atomlong | 2021-10-23 18:06:15 +0800 |
commit | 80096c8de4b34ec1ed8f30bb428918cd592b2424 (patch) | |
tree | b48dd1e73de9ea35a4709fb6b93deb16331ec514 /0117-build-Integrate-venvlauncher-build-installation-into.patch | |
parent | 89a67c05174951d172252b1db96ff93cc4ec4bcd (diff) | |
download | aur-mingw-w64-python.tar.gz |
update to 3.9.7
Diffstat (limited to '0117-build-Integrate-venvlauncher-build-installation-into.patch')
-rw-r--r-- | 0117-build-Integrate-venvlauncher-build-installation-into.patch | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/0117-build-Integrate-venvlauncher-build-installation-into.patch b/0117-build-Integrate-venvlauncher-build-installation-into.patch deleted file mode 100644 index 576b5db5e4fc..000000000000 --- a/0117-build-Integrate-venvlauncher-build-installation-into.patch +++ /dev/null @@ -1,79 +0,0 @@ -From 4dc2cda4b0eaffbb79f67174db060452dc43e3ea Mon Sep 17 00:00:00 2001 -From: Christoph Reiter <reiter.christoph@gmail.com> -Date: Sun, 25 Jul 2021 16:53:35 +0200 -Subject: [PATCH 117/N] build: Integrate venvlauncher build/installation into - the Makefile - -This is required for venv creation on Windows. -Ideally this would use the venv specific launcher (PC/launcher.c), -but a copy of main binary seems to work as well for now. ---- - Makefile.pre.in | 17 +++++++++++++++-- - 1 file changed, 15 insertions(+), 2 deletions(-) - -diff --git a/Makefile.pre.in b/Makefile.pre.in -index a17dcdf..ab90e65 100644 ---- a/Makefile.pre.in -+++ b/Makefile.pre.in -@@ -161,6 +161,7 @@ BINLIBDEST= @BINLIBDEST@ - LIBDEST= $(SCRIPTDIR)/python$(VERSION) - INCLUDEPY= $(INCLUDEDIR)/python$(LDVERSION) - CONFINCLUDEPY= $(CONFINCLUDEDIR)/python$(LDVERSION) -+VENVLAUNCHERDIR= $(BINLIBDEST)/venv/scripts/nt - - # Symbols used for using shared libraries - SHLIB_SUFFIX= @SHLIB_SUFFIX@ -@@ -264,6 +265,8 @@ LIBOBJS= @LIBOBJS@ - PYTHON= python$(EXE) - BUILDPYTHON= python$(BUILDEXE) - BUILDPYTHONW= pythonw$(BUILDEXE) -+BUILDVENVLAUNCHER= venvlauncher$(BUILDEXE) -+BUILDVENVWLAUNCHER= venvwlauncher$(BUILDEXE) - - PYTHON_FOR_REGEN?=@PYTHON_FOR_REGEN@ - UPDATE_FILE=@PYTHON_FOR_REGEN@ $(srcdir)/Tools/scripts/update_file.py -@@ -487,7 +490,7 @@ DTRACE_DEPS = \ - - # Default target - all: @DEF_MAKE_ALL_RULE@ --build_all: check-clean-src $(BUILDPYTHON) $(BUILDPYTHONW) oldsharedmods sharedmods gdbhooks \ -+build_all: check-clean-src $(BUILDPYTHON) $(BUILDPYTHONW) $(BUILDVENVLAUNCHER) $(BUILDVENVWLAUNCHER) oldsharedmods sharedmods gdbhooks \ - Programs/_testembed python-config - - # Check that the source is clean when building out of source. -@@ -617,6 +620,14 @@ $(BUILDPYTHONW): Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) pythonw - $(BUILDPYTHON): Programs/python.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) python_exe.o - $(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -municode -o $@ Programs/python.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) python_exe.o - -+# FIXME: build these from PC/launcher.c instead -+$(BUILDVENVLAUNCHER): $(BUILDPYTHON) -+ cp $(BUILDPYTHON) $(BUILDVENVLAUNCHER) -+ -+# FIXME: build these from PC/launcher.c instead -+$(BUILDVENVWLAUNCHER): $(BUILDPYTHONW) -+ cp $(BUILDPYTHONW) $(BUILDVENVWLAUNCHER) -+ - platform: $(BUILDPYTHON) pybuilddir.txt - $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform - -@@ -1331,7 +1342,7 @@ $(DESTSHARED): - # Install the interpreter with $(VERSION) affixed - # This goes into $(exec_prefix) - altbininstall: $(BUILDPYTHON) @FRAMEWORKPYTHONW@ -- @for i in $(BINDIR) $(LIBDIR); \ -+ @for i in $(BINDIR) $(LIBDIR) $(VENVLAUNCHERDIR); \ - do \ - if test ! -d $(DESTDIR)$$i; then \ - echo "Creating directory $$i"; \ -@@ -1342,6 +1353,8 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORKPYTHONW@ - if test "$(PYTHONFRAMEWORKDIR)" = "no-framework" ; then \ - $(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(LDVERSION)$(EXE); \ - $(INSTALL_PROGRAM) $(BUILDPYTHONW) $(DESTDIR)$(BINDIR)/python3w$(EXE); \ -+ $(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(VENVLAUNCHERDIR)/python$(EXE); \ -+ $(INSTALL_PROGRAM) $(BUILDPYTHONW) $(DESTDIR)$(VENVLAUNCHERDIR)/pythonw$(EXE); \ - else \ - $(INSTALL_PROGRAM) $(STRIPFLAG) Mac/pythonw $(DESTDIR)$(BINDIR)/python$(LDVERSION)$(EXE); \ - fi --- -2.32.0 - |