aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2020-09-28 12:54:38 +0200
committerGitHub <noreply@github.com>2020-09-28 12:54:38 +0200
commit08eb0821c9c62ef21e054b6a53a980019bbfa6ca (patch)
treef9d3171747ad2d0fbab1f1c352d182f7b2fd33b7 /Makefile
parentbddd56d0c6f84890af4f744c58715dfb793fcea4 (diff)
parent9266d20afc7f3571ffee5edc27afe19dc54bb356 (diff)
downloadyosys-08eb0821c9c62ef21e054b6a53a980019bbfa6ca.tar.gz
yosys-08eb0821c9c62ef21e054b6a53a980019bbfa6ca.tar.bz2
yosys-08eb0821c9c62ef21e054b6a53a980019bbfa6ca.zip
Merge pull request #2386 from btut/fix/pyinstallpath
Fixed python installation path
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1b25c9a71..06df47b91 100644
--- a/Makefile
+++ b/Makefile
@@ -171,8 +171,7 @@ else
PYTHON_CONFIG := $(PYTHON_EXECUTABLE)-config
endif
-PYTHON_PREFIX := $(shell $(PYTHON_CONFIG) --prefix)
-PYTHON_DESTDIR := $(PYTHON_PREFIX)/lib/python$(PYTHON_VERSION)/site-packages
+PYTHON_DESTDIR := $(shell $(PYTHON_EXECUTABLE) -c "import site; print(site.getsitepackages()[-1]);")
# Reload Makefile.conf to override python specific variables if defined
ifneq ($(wildcard Makefile.conf),)