Skip to content
Snippets Groups Projects
Commit d36ae97a authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

Fixed env setup in python exercise for LCG view usage

parent 11899bc2
Branches
No related tags found
No related merge requests found
PYTHON_VERSION=$(word 2, $(shell python3 --version))
PYTHON_VERSION ::= $(word 2,$(shell python3 --version)) PYTHON_LOCATION=$(dir $(shell which python3))
PYTHON_MAJOR ::= $(word 1,$(subst ., ,$(PYTHON_VERSION))) PYTHON_MAJOR=$(word 1,$(subst ., ,$(PYTHON_VERSION)))
PYTHON_MINOR ::= $(word 2,$(subst ., ,$(PYTHON_VERSION))) PYTHON_MINOR=$(word 2,$(subst ., ,$(PYTHON_VERSION)))
PYTHON_INCLUDE ::= /usr/include/python$(PYTHON_MAJOR).$(PYTHON_MINOR) PYTHON_INCLUDE_BASE=$(PYTHON_LOCATION)../include/python$(PYTHON_MAJOR).$(PYTHON_MINOR)
PYTHON_INCLUDE=$(if $(wildcard $(PYTHON_INCLUDE_BASE)m/Python.h),$(PYTHON_INCLUDE_BASE)m, $(PYTHON_INCLUDE_BASE))
all: mandel.so libmandelc.so all: mandel.so libmandelc.so
solution: mandel.so libmandelc.so solution: mandel.so libmandelc.so
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment