fix: daily builds of conda

Ran into a lot of `build not compiled for windows` errors on windows. So using the host and dependencies from conda-forge meta.yaml and pin boost-cpp to <=1.74 to at least allow windows builds of ifcopenshell to be created while we figure out how to support boost-cpp >=1.78
This commit is contained in:
krande
2022-09-30 17:49:55 +02:00
parent 40e463a55f
commit 75645a837a
3 changed files with 24 additions and 40 deletions
+3 -6
View File
@@ -1,11 +1,8 @@
compile: compile:
conda activate conda-build && conda-build -c conda-forge . --keep-old-work --python 3.10.4 conda activate conda-build && conda-build -c conda-forge . --keep-old-work --python 3.10.5
debug: debug:
conda activate conda-build && conda-debug -c conda-forge . --python 3.10.4 conda activate conda-build && conda-debug -c conda-forge . --python 3.10.4
install: env:
conda env create -f environment.yml conda env update --f environment.yml --prune
update:
conda env update -n conda-build --file environment.yml --prune
+5 -3
View File
@@ -11,6 +11,7 @@ cmake -G "Ninja" ^
-D OCC_INCLUDE_DIR:FILEPATH="%LIBRARY_PREFIX%\include\opencascade" ^ -D OCC_INCLUDE_DIR:FILEPATH="%LIBRARY_PREFIX%\include\opencascade" ^
-D OCC_LIBRARY_DIR:FILEPATH="%LIBRARY_PREFIX%\lib" ^ -D OCC_LIBRARY_DIR:FILEPATH="%LIBRARY_PREFIX%\lib" ^
-D CGAL_INCLUDE_DIR:FILEPATH="%LIBRARY_PREFIX%\include" ^ -D CGAL_INCLUDE_DIR:FILEPATH="%LIBRARY_PREFIX%\include" ^
-D GMP_INCLUDE_DIR:FILEPATH="%LIBRARY_PREFIX%\include" ^
-D GMP_LIBRARY_DIR:FILEPATH="%LIBRARY_PREFIX%\lib" ^ -D GMP_LIBRARY_DIR:FILEPATH="%LIBRARY_PREFIX%\lib" ^
-D MPFR_LIBRARY_DIR:FILEPATH="%LIBRARY_PREFIX%\lib" ^ -D MPFR_LIBRARY_DIR:FILEPATH="%LIBRARY_PREFIX%\lib" ^
-D COLLADA_SUPPORT=OFF ^ -D COLLADA_SUPPORT=OFF ^
@@ -30,10 +31,11 @@ cmake -G "Ninja" ^
-D BUILD_CONVERT:BOOL=ON ^ -D BUILD_CONVERT:BOOL=ON ^
-D BUILD_IFCMAX:BOOL=OFF ^ -D BUILD_IFCMAX:BOOL=OFF ^
-D IFCXML_SUPPORT:BOOL=ON ^ -D IFCXML_SUPPORT:BOOL=ON ^
-D BOOST_LIBRARYDIR:FILEPATH="%LIBRARY_PREFIX%\lib" ^ -D Boost_LIBRARYDIR:FILEPATH="%LIBRARY_PREFIX%\lib" ^
-D BOOST_INCLUDEDIR:FILEPATH="%LIBRARY_PREFIX%\include" ^ -D Boost_INCLUDEDIR:FILEPATH="%LIBRARY_PREFIX%\include" ^
-D BOOST_USE_STATIC_LIBS:BOOL=OFF ^ -D Boost_USE_STATIC_LIBS:BOOL=OFF ^
%SRC_DIR%/cmake %SRC_DIR%/cmake
if errorlevel 1 exit 1 if errorlevel 1 exit 1
:: Build and install :: Build and install
+16 -31
View File
@@ -24,46 +24,31 @@ requirements:
host: host:
- python - python
- occt >={{ occt_version }} - boost-cpp <=1.74.0
- hdf5 >={{ hdf5_version }} - occt
- cgal-cpp >={{ cgal_cpp_version }}
- nlohmann_json
- libxml2 - libxml2
- cgal-cpp
- hdf5
- mpfr
- gmp # [unix]
- mpir # [win]
- nlohmann_json
run: run:
- python - python
- occt >={{ occt_version }} - boost-cpp <=1.74.0
- cgal-cpp >={{ cgal_cpp_version }} - occt
- hdf5 >={{ hdf5_version }} - libxml2
- lark-parser - cgal-cpp
- deepdiff - hdf5
- requests - mpfr
- gmp # [unix]
- mpir # [win]
- nlohmann_json - nlohmann_json
- isodate
- numpy >=1.17
test: test:
imports: imports:
- ifcopenshell - ifcopenshell
requires:
- pytest
- pytest-cov
- numpy
- lxml
- isodate
- lark
- networkx
- xmlschema
#source_files:
# - src/ifcopenshell-python/test/api
# - src/ifcopenshell-python/test/util
# - src/ifcopenshell-python/test/bootstrap.py
# - src/ifcopenshell-python/test/test_file.py
# - src/ifcopenshell-python/test/test_wall_opening.py
# - src/ifcopenshell-python/test/__init__.py
#commands:
# #- pip install bcf-client
# - cd ../src/ifcopenshell-python/test && pytest -p no:pytest-blender
about: about:
home: http://ifcopenshell.org home: http://ifcopenshell.org