From: Benedikt Tutzer Date: Fri, 25 Sep 2020 09:21:16 +0000 (+0200) Subject: Fixed python installation path X-Git-Tag: working-ls180~263^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9266d20afc7f3571ffee5edc27afe19dc54bb356;p=yosys.git Fixed python installation path The path where python expects it's libraries seems to change from operating system to operating system, but can be querried from the site package. --- diff --git a/Makefile b/Makefile index a3ff10625..329ad75eb 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),)