work on packaging
This commit is contained in:
parent
960a954e02
commit
a3469c53df
5
Makefile
5
Makefile
|
@ -1,10 +1,12 @@
|
||||||
MAKESELF:=makeself
|
MAKESELF:=makeself
|
||||||
LICENSE:=$(shell cat ./license.txt)
|
LICENSE:=$(shell cat ./license.txt)
|
||||||
VERSION:=$(shell cd src && python -c "import msspec; print(msspec.__version__)")
|
#VERSION:=$(shell cd src && python -c "import msspec; print(msspec.__version__)")
|
||||||
|
VERSION:=$(shell git describe|sed 's/-\([[:digit:]]\+\)-.*/post\1/')
|
||||||
SETUPFILE:=pymsspec-$(VERSION).setup
|
SETUPFILE:=pymsspec-$(VERSION).setup
|
||||||
|
|
||||||
.PHONY: clean purge version
|
.PHONY: clean purge version
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rf *.setup
|
@rm -rf *.setup
|
||||||
|
|
||||||
|
@ -20,5 +22,6 @@ purge: clean
|
||||||
|
|
||||||
selfex: purge
|
selfex: purge
|
||||||
@echo "Creating the self-extractible setup program... "
|
@echo "Creating the self-extractible setup program... "
|
||||||
|
@echo "__version__ = \"$(VERSION)\"" > ./src/msspec/version.py
|
||||||
$(MAKESELF) --license "$(LICENSE)" ./src $(SETUPFILE) "Python MsSpec" ./install.sh
|
$(MAKESELF) --license "$(LICENSE)" ./src $(SETUPFILE) "Python MsSpec" ./install.sh
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
# Auto-generated file, do not edit
|
from .version import __version__
|
||||||
__version__ = "1.6"
|
|
||||||
__sha__ = "$Id$"
|
__sha__ = "$Id$"
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
# Auto-generated file, do not edit
|
from ..version import __version__
|
||||||
__version__ = "1.6"
|
|
||||||
__sha__ = "$Id$"
|
__sha__ = "$Id$"
|
||||||
|
|
|
@ -14,8 +14,8 @@ pybinding: libspec.so
|
||||||
|
|
||||||
libspec.so: $(objects) main.f
|
libspec.so: $(objects) main.f
|
||||||
@echo "building Python binding..."
|
@echo "building Python binding..."
|
||||||
@f2py3 -I. $(objects) -c -m libspec main.f
|
#@f2py3 -I. $(objects) -c -m libspec main.f
|
||||||
#f2py3 -I. $(objects) --debug-capi --debug -c -m libspec main.f
|
@f2py3 -I. $(objects) --debug-capi --debug -c -m libspec main.f
|
||||||
@cp libspec.cpython*.so ../
|
@cp libspec.cpython*.so ../
|
||||||
@mv libspec.cpython*.so libspec.so
|
@mv libspec.cpython*.so libspec.so
|
||||||
|
|
||||||
|
@ -28,7 +28,8 @@ exe: $(objects) prog.f
|
||||||
$(objects): $(objects_src)
|
$(objects): $(objects_src)
|
||||||
@echo "compiling subroutines and functions..."
|
@echo "compiling subroutines and functions..."
|
||||||
#$(COMP) -cpp -fPIC -O2 -ffast-math -mcmodel=large -fdefault-real-4 -c $^
|
#$(COMP) -cpp -fPIC -O2 -ffast-math -mcmodel=large -fdefault-real-4 -c $^
|
||||||
@$(COMP) $(OPTS) -fPIC -mcmodel=large -c $^
|
#@$(COMP) $(OPTS) -fPIC -mcmodel=large -c $^
|
||||||
|
@$(COMP) $(OPTS) -fPIC -c $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "cleaning..."
|
@echo "cleaning..."
|
||||||
|
|
Loading…
Reference in New Issue