Skip to content

Commit

Permalink
msys convert_path fix and root hack
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Jul 19, 2023
1 parent 42490eb commit a381e9f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -2276,16 +2276,22 @@ libainstall: all python-config
else true; \
fi

ifeq ($(shell uname -o),Msys)
DESTDIRFINAL=$(DESTDIR)
else
DESTDIRFINAL=$(DESTDIR)/
endif

# Install the dynamically loadable modules
# This goes into $(exec_prefix)
sharedinstall: all
$(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/setup.py install \
--prefix=$(prefix) \
--install-scripts=$(BINDIR) \
--install-platlib=$(DESTSHARED) \
--root=$(DESTDIR)/
-rm $(DESTDIR)$(DESTSHARED)/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py
-rm -r $(DESTDIR)$(DESTSHARED)/__pycache__
--root=$(DESTDIRFINAL)
-rm $(DESTDIRFINAL)$(DESTSHARED)/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py
-rm -r $(DESTDIRFINAL)$(DESTSHARED)/__pycache__

# Here are a couple of targets for MacOSX again, to install a full
# framework-based Python. frameworkinstall installs everything, the
Expand Down

0 comments on commit a381e9f

Please sign in to comment.