Skip to content
Snippets Groups Projects
Commit e663a33b authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Merge branch 'v2.5-fix-python-clang8' into v2.5

parents a89728e0 32a5193f
No related branches found
No related tags found
No related merge requests found
include VERSION include VERSION
include Plumed.h include include/Plumed.h
include plumed.pyx include plumed.pyx
include cplumed.pxd include cplumed.pxd
...@@ -29,8 +29,9 @@ all: ...@@ -29,8 +29,9 @@ all:
endif endif
pip: pip:
cp ../src/wrapper/Plumed.h .
cp ../VERSION . cp ../VERSION .
mkdir -p include
cp ../src/wrapper/Plumed.h include/
ifndef python_bin ifndef python_bin
python_bin=python python_bin=python
...@@ -40,10 +41,12 @@ endif ...@@ -40,10 +41,12 @@ endif
pypi: pypi:
mkdir -p pypi mkdir -p pypi
mkdir -p pypi/include
cp -r test pypi/ cp -r test pypi/
cp ../src/wrapper/Plumed.h README.rst MANIFEST.in cplumed.pxd plumed.pyx setup.py ../VERSION pypi/ cp ../src/wrapper/Plumed.h pypi/include/
cp README.rst MANIFEST.in cplumed.pxd plumed.pyx setup.py ../VERSION pypi/
cd pypi ; plumed_language_level=2 $(python_bin) setup.py sdist cd pypi ; plumed_language_level=2 $(python_bin) setup.py sdist
echo "now use: $(python_bin) -m twine upload dist/plumed-$(VERSION).tar.gz" echo "now use: $(python_bin) -m twine upload dist/plumed-$(VERSION).tar.gz"
clean: clean:
rm -fr *.so plumed.cpp build Plumed.h VERSION pypi test/logfile test/bck* pypi rm -fr *.so plumed.cpp build Plumed.h VERSION pypi test/logfile test/bck* pypi include
...@@ -48,7 +48,11 @@ else: ...@@ -48,7 +48,11 @@ else:
if os.getenv("plumed_macports") is not None: if os.getenv("plumed_macports") is not None:
copyfile("../VERSION","VERSION") copyfile("../VERSION","VERSION")
copyfile("../src/wrapper/Plumed.h","Plumed.h") try:
os.mkdir("include")
except OSError:
pass
copyfile("../src/wrapper/Plumed.h","include/Plumed.h")
plumedname = os.getenv("plumed_program_name") plumedname = os.getenv("plumed_program_name")
if plumedname is None: if plumedname is None:
...@@ -89,7 +93,7 @@ def readme(): ...@@ -89,7 +93,7 @@ def readme():
try: try:
include_dirs=[os.environ["plumed_include_dir"]] include_dirs=[os.environ["plumed_include_dir"]]
except KeyError: except KeyError:
include_dirs=["."] include_dirs=["./include"]
# allow one to force using cython with env var plumed_force_cython=yes # allow one to force using cython with env var plumed_force_cython=yes
USE_CYTHON = False USE_CYTHON = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment