added python path change to ns3 and simplified substitution, which is not version dependent

This commit is contained in:
Blake Harnden 2019-09-27 12:11:14 -07:00
parent 4b028661ab
commit cd747515ea
2 changed files with 2 additions and 10 deletions

View file

@ -14,11 +14,7 @@ if WANT_DOCS
DOCS = doc
endif
if PYTHON3
PYTHONLIBDIR=$(shell echo $(pythondir) | sed -e 's/site-packages/dist-packages/')
else
PYTHONLIBDIR=$(pythondir)
endif
PYTHONLIBDIR=$(subst site-packages,dist-packages,$(pythondir))
SUBDIRS = proto $(DOCS)

View file

@ -9,11 +9,7 @@
if WANT_PYTHON
if PYTHON3
PYTHONLIBDIR=$(libdir)/python3/dist-packages
else
PYTHONLIBDIR=$(pythondir)
endif
PYTHONLIBDIR=$(subst site-packages,dist-packages,$(pythondir))
SETUPPY = setup.py
SETUPPYFLAGS = -v