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 @@ -2276,16 +2276,22 @@ libainstall: all python-config
2276
2276
else true; \
2277
2277
fi
2278
2278
2279
+ ifeq ($(shell uname -o),Msys)
2280
+ DESTDIRFINAL=$(DESTDIR)
2281
+ else
2282
+ DESTDIRFINAL=$(DESTDIR)/
2283
+ endif
2284
+
2279
2285
# Install the dynamically loadable modules
2280
2286
# This goes into $(exec_prefix)
2281
2287
sharedinstall: all
2282
2288
$(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/setup.py install \
2283
2289
--prefix=$(prefix) \
2284
2290
--install-scripts=$(BINDIR) \
2285
2291
--install-platlib=$(DESTSHARED) \
2286
- --root=$(DESTDIR)/
2287
- -rm $(DESTDIR )$(DESTSHARED)/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py
2288
- -rm -r $(DESTDIR )$(DESTSHARED)/__pycache__
2292
+ --root=$(DESTDIRFINAL)
2293
+ -rm $(DESTDIRFINAL )$(DESTSHARED)/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py
2294
+ -rm -r $(DESTDIRFINAL )$(DESTSHARED)/__pycache__
2289
2295
2290
2296
# Here are a couple of targets for MacOSX again, to install a full
2291
2297
# framework-based Python. frameworkinstall installs everything, the
You can’t perform that action at this time.
0 commit comments