File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -2281,16 +2281,22 @@ libainstall: all python-config
2281
2281
else true; \
2282
2282
fi
2283
2283
2284
+ ifeq ($(shell uname -o),Msys)
2285
+ DESTDIRFINAL=$(DESTDIR)
2286
+ else
2287
+ DESTDIRFINAL=$(DESTDIR)/
2288
+ endif
2289
+
2284
2290
# Install the dynamically loadable modules
2285
2291
# This goes into $(exec_prefix)
2286
2292
sharedinstall: all
2287
2293
$(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/setup.py install \
2288
2294
--prefix=$(prefix) \
2289
2295
--install-scripts=$(BINDIR) \
2290
2296
--install-platlib=$(DESTSHARED) \
2291
- --root=$(DESTDIR)/
2292
- -rm $(DESTDIR )$(DESTSHARED)/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py
2293
- -rm -r $(DESTDIR )$(DESTSHARED)/__pycache__
2297
+ --root=$(DESTDIRFINAL)
2298
+ -rm $(DESTDIRFINAL )$(DESTSHARED)/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py
2299
+ -rm -r $(DESTDIRFINAL )$(DESTSHARED)/__pycache__
2294
2300
2295
2301
# Here are a couple of targets for MacOSX again, to install a full
2296
2302
# framework-based Python. frameworkinstall installs everything, the
You can’t perform that action at this time.
0 commit comments