mirror of
https://github.com/clearlinux/graphene.git
synced 2026-04-28 19:23:39 +00:00
Adapt the python constants so that python-simple also works on Fedora 31. python-scipy-insecure misses some shared libraries on Fedora 31, so it does not work there yet.
24 lines
750 B
Makefile
24 lines
750 B
Makefile
# By default, Graphene runs the system Python 3.5 executable.
|
|
PYTHONVERSION ?= python3.5
|
|
PYTHONPATH ?= /usr
|
|
|
|
# Fedora/RedHat use /usr/lib64, Ubuntu /usr/lib
|
|
ifneq ($(wildcard $(PYTHONPATH)/lib64/*),)
|
|
PYTHONLIBDIR = lib64
|
|
else
|
|
PYTHONLIBDIR = lib
|
|
endif
|
|
PYTHONHOME := $(PYTHONPATH)/$(PYTHONLIBDIR)/$(PYTHONVERSION)
|
|
|
|
PYTHONDISTHOME := $(PYTHONPATH)/$(PYTHONLIBDIR)/python3/dist-packages
|
|
ifeq ($(wildcard $(PYTHONDISTHOME)/*),)
|
|
# Fedora/RedHat case
|
|
PYTHONDISTHOME := $(PYTHONPATH)/$(PYTHONLIBDIR)/$(PYTHONVERSION)/site-packages
|
|
endif
|
|
|
|
PYTHONEXEC := $(PYTHONPATH)/bin/$(PYTHONVERSION)
|
|
PYTHONSHORTVERSION := $(subst python,,$(subst .,,$(PYTHONVERSION)))
|
|
|
|
# Fedora/Redhat and Ubuntu use for example x86_64-linux-gnu
|
|
PYTHON_ARCH_LONG := $(ARCH)-linux-gnu
|