Skip to content

Commit ba9962c

Browse files
Fixed bugs in CI for building python module
1 parent 5029eb8 commit ba9962c

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

PyLib/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,9 @@ endforeach(name)
109109
add_subdirectory(${PYBIND11_DIR} ./pybind11)
110110

111111
find_package(ZLIB)
112-
find_package(GLEW REQUIRED)
113112

114113
target_compile_definitions(XPLTLib PRIVATE HAVE_ZLIB)
115114
target_link_libraries(XPLTLib PRIVATE ${ZLIB_LIBRARY_RELEASE})
116-
target_link_libraries(PostLib PRIVATE ${GLEW_LIBRARIES} GLEW::glew)
117115

118116
pybind11_add_module(fbs PyFBS.cpp PyFBSCore.cpp PyFBSPost.cpp PyFBSMesh.cpp PyFBSGeom.cpp)
119117

ci/Linux/scp-to-repo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ fi
77

88
chmod +x cmbuild/bin/*
99
scp cmbuild/bin/* repo:~/$REMOTE_PATH/bin
10-
scp pythonModule/* repo:~/download
10+
find pythonModule/ | grep .so | xargs -I file scp file repo:~/download

ci/Windows/build.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ cd ..
3030
:: Standalone Python module
3131
cd PyLib
3232
git clone --depth 1 https://github.com/febiosoftware/FEBio.git
33+
:: TODO: Cmake requires 6 runs to generate correctly
34+
for /l %%a in (1, 1, 6) do (
3335
cmake -L . -B cmbuild ^
3436
-DFEBioDir=FEBio ^
3537
-DPython3_INCLUDE_DIR="C:\Program Files\Python313\include" ^
3638
-DPython3_LIBRARY="C:\Program Files\Python313\libs\python313.lib" ^
3739
-DPython3_EXECUTABLE="C:\Program Files\Python313\python.exe"
40+
)
3841
cd cmbuild
3942
msbuild /v:m /P:Configuration=Release /clp:ErrorsOnly /m:%NUMBER_OF_PROCESSORS% ALL_BUILD.vcxproj
4043
cd ..\..

ci/Windows/scp-to-repo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ if [ $# == 1 ] && [ "$1" != "develop" ]; then
66
fi
77

88
scp cmbuild/bin/Release/* repo:~/$REMOTE_PATH/bin
9-
scp pythonModule/* repo:~/download
9+
find pythonModule/ | grep .pyd | xargs -I file scp file repo:~/download

ci/macOS/build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ main() {
2323
git clone --depth 1 https://github.com/febiosoftware/FEBio.git
2424
cmake -L . -B cmbuild \
2525
-DFEBioDir=FEBio \
26-
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 \
27-
-DCMAKE_OSX_ARCHITECTURES=x86_64
26+
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15
2827
pushd cmbuild
2928
make -j $(sysctl -n hw.ncpu)
3029
popd

ci/macOS/scp-to-repo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ fi
77

88
chmod +x cmbuild/bin/FEBioStudio.app/Contents/MacOS/*
99
scp -r cmbuild/bin/FEBioStudio.app/Contents/MacOS/* repo:~/$REMOTE_PATH/FEBioStudio.app/Contents/MacOS
10-
scp pythonModule/* repo:~/download
10+
find pythonModule/ | grep .dylib | xargs -I file scp file repo:~/download

0 commit comments

Comments
 (0)