Add Python 3 compatibility to PYTHON package
This commit is contained in:
6
lib/python/Makefile.lammps.python3
Normal file
6
lib/python/Makefile.lammps.python3
Normal file
@ -0,0 +1,6 @@
|
||||
# Settings that the LAMMPS build will import when this package library is used
|
||||
# See the README file for more explanation
|
||||
|
||||
python_SYSINC = $(shell which python3-config > /dev/null 2>&1 && python3-config --includes || python-config --includes )
|
||||
python_SYSLIB = $(shell which python3-config > /dev/null 2>&1 && python3-config --ldflags || python-config --ldflags)
|
||||
python_SYSPATH =
|
||||
@ -6,10 +6,6 @@ and your version of Python, and copy it to Makefile.lammps before
|
||||
building LAMMPS itself. You may need to edit one of the provided
|
||||
files to match your system.
|
||||
|
||||
Note that is not currently possible to use the PYTHON package with
|
||||
Python 3, only with Python 2. The C API changed from Python 2 to 3
|
||||
and the LAMMPS code is not compatible with both.
|
||||
|
||||
If you create a new Makefile.lammps file suitable for some version of
|
||||
Python on some system, that is not a match to one of the provided
|
||||
Makefile.lammps.* files, you can send it to the developers, and we can
|
||||
|
||||
Reference in New Issue
Block a user