From 78a306dd7aa32006fb09435cbdbbdc0cca056bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20KUBLER?= <gregoire.kubler@proton.me> Date: Fri, 19 Apr 2024 16:16:43 +0200 Subject: [PATCH] feat : missing pyproject.toml + tempalte cibuildwheel before script --- ...uildwheel_build_deps_before_build_wheel.sh | 22 +++++++++++++------ pyproject.toml | 11 ++++++++++ 2 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 pyproject.toml diff --git a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh index 40c506269..efc0bc5d3 100755 --- a/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh +++ b/.gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh @@ -1,12 +1,20 @@ +#!/bin/bash set -x set -e -DEPS_NAME=("aidge_core") -for repo in $DEPS_NAME; do - cd $repo - mkdir build - cd build - cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DAIDGE_INSTALL=1 - make -j4 all install +for repo in $AIGE_DEPENDENCIES ; do + REPO_PATH=$(find /host/home/ -type d -iname $repo \ + -not -path '*install*' \ + -not -path '*.git*' \ + -not -path '*miniconda*' \ + -not -path '*.local*' \ + -not -path "*lib*" \ + -not -path "*/$repo/$repo" \ + -print -quit) + + cd $REPO_PATH + mkdir -p build # creating build if its not already there to hold the build of cpp files + rm -rf build/* # build from scratch + pip install . -v done set +x set +e diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..1556b4442 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,11 @@ +# [project] +# name = "aidge_core" +# dependencies = ["numpy"] +# version="$(cat version.txt)" + +[tool.cibuildwheel] +build-frontend = "build" +before-build = [".gitlab/ci/cibuildwheel_build_deps_before_build_wheel.sh ${AIDGE_DEPENDENCIES}"] + +[tool.cibuildwheel.environment] +AIGE_DEPENDENCIES = "" # aidge_core do not rely on any aidge dependency -- GitLab