Skip to content

Commit 0b76e96

Browse files
committed
Adjust makefile to python3
1 parent 33f14ac commit 0b76e96

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Makefile.config.example

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,26 +68,22 @@ BLAS := atlas
6868

6969
# NOTE: this is required only if you will compile the python interface.
7070
# We need to be able to find Python.h and numpy/arrayobject.h.
71-
PYTHON_INCLUDE := /usr/include/python2.7 \
72-
/usr/lib/python2.7/dist-packages/numpy/core/include
71+
PYTHON_LIBRARIES := boost_python3 python3.8
72+
PYTHON_INCLUDE := /usr/include/python3.8 \
73+
/usr/lib/python3/dist-packages/numpy/core/include
7374
# Anaconda Python distribution is quite popular. Include path:
7475
# Verify anaconda location, sometimes it's in root.
7576
# ANACONDA_HOME := $(HOME)/anaconda
7677
# PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
77-
# $(ANACONDA_HOME)/include/python2.7 \
78-
# $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include
79-
80-
# Uncomment to use Python 3 (default is Python 2)
81-
# PYTHON_LIBRARIES := boost_python3 python3.5m
82-
# PYTHON_INCLUDE := /usr/include/python3.5m \
83-
# /usr/lib/python3.5/dist-packages/numpy/core/include
78+
# $(ANACONDA_HOME)/include/python3.8 \
79+
# $(ANACONDA_HOME)/lib/python3.8/site-packages/numpy/core/include
8480

8581
# We need to be able to find libpythonX.X.so or .dylib.
8682
PYTHON_LIB := /usr/lib /usr/local/lib
8783
# PYTHON_LIB := $(ANACONDA_HOME)/lib
8884

8985
# Homebrew installs numpy in a non standard path (keg only)
90-
# PYTHON_INCLUDE += $(dir $(shell python -c 'import numpy.core; print(numpy.core.__file__)'))/include
86+
# PYTHON_INCLUDE += $(dir $(shell python3 -c 'import numpy.core; print(numpy.core.__file__)'))/include
9187
# PYTHON_LIB += $(shell brew --prefix numpy)/lib
9288

9389
# Uncomment to support layers written in Python (will link against Python libs)

0 commit comments

Comments
 (0)