Skip to content

Commit a866ba2

Browse files
rootmatyasselmeci
authored andcommitted
Fix Python 3 distutils incompatibility for install-noconfig in Makefile
(install_lib and install_scripts no longer accept --root or --prefix)
1 parent 844492e commit a866ba2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ install:
3232
mv -f $(DESTDIR)$(BINDIR)/$(NAME) $(DESTDIR)$(SBINDIR)/$(NAME)
3333

3434
install-noconfig:
35-
$(PYTHON) setup.py install_lib install_scripts --root=$(DESTDIR)/ --prefix=$(PREFIX)
36-
mkdir -p $(DESTDIR)$(SBINDIR)
37-
mv -f $(DESTDIR)$(BINDIR)/$(NAME) $(DESTDIR)$(SBINDIR)/$(NAME)
35+
$(PYTHON) setup.py install_lib -d $(DESTDIR)/$(PYTHON_SITELIB)
36+
$(PYTHON) setup.py install_scripts -d $(DESTDIR)/$(SBINDIR)
3837

3938
dist:
4039
-rm -f MANIFEST

0 commit comments

Comments
 (0)