Fix bug in Jenkinsfile.
The PYTHONPATH variable is passed in the stage steps to tell Python where to find the msspec package.
This commit is contained in:
parent
c22f86fe76
commit
c5187e3c4b
|
@ -10,12 +10,12 @@ pipeline {
|
|||
|
||||
stage('Build the code and generate tests results...') {
|
||||
steps {
|
||||
sh '. ./ci_venv/bin/activate && make -C src results VERBOSE=1'
|
||||
sh '. ./ci_venv/bin/activate && make -C src results VERBOSE=1 PYTHONPATH=$PWD/src'
|
||||
}
|
||||
}
|
||||
stage('Create a setup file...') {
|
||||
steps {
|
||||
sh '. ~/.profile && make selfex VERBOSE=1'
|
||||
sh '. ~/.profile && make selfex VERBOSE=1 PYTHONPATH=$PWD/src'
|
||||
}
|
||||
}
|
||||
stage('Test installation...') {
|
||||
|
|
|
@ -17,13 +17,12 @@ endif
|
|||
|
||||
.PHONY: clean
|
||||
|
||||
pybinding: libphagen
|
||||
pybinding: libphagen.target
|
||||
|
||||
libphagen: $(objects) main.f
|
||||
libphagen.target: $(objects) main.f
|
||||
@echo "building Python binding..."
|
||||
@$(F2PY) -I. $(objects) $(F2PY_OPTS)-c -m libphagen main.f
|
||||
# @cp libphagen.cpython*.so ../
|
||||
# @mv libphagen.cpython*.so libphagen.so
|
||||
@touch $@
|
||||
|
||||
$(objects): $(objects_src)
|
||||
@echo "compiling subroutines and functions for phagen..."
|
||||
|
@ -32,3 +31,5 @@ $(objects): $(objects_src)
|
|||
clean:
|
||||
@echo "cleaning..."
|
||||
@rm -rf *.o *.mod
|
||||
@rm -rf $(objects)
|
||||
@rm -f libphagen.target
|
||||
|
|
Loading…
Reference in New Issue