From 0ccae86090ef2a46158cdfed382b9a388a89fc2e Mon Sep 17 00:00:00 2001 From: Keith Battocchi Date: Tue, 18 Jul 2023 11:55:52 -0400 Subject: [PATCH] Pin cython<3 Signed-off-by: Keith Battocchi Signed-off-by: star1327p --- .github/workflows/publish-documentation.yml | 2 +- .github/workflows/publish-package.yml | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-documentation.yml b/.github/workflows/publish-documentation.yml index 95037746c..c7efad85f 100644 --- a/.github/workflows/publish-documentation.yml +++ b/.github/workflows/publish-documentation.yml @@ -63,7 +63,7 @@ jobs: python-version: 3.8 # because of our supported TensorFlow versions, must build on 3.6-3.8 - run: python -m pip install --upgrade pip && pip install --upgrade setuptools name: Ensure latest pip and setuptools - - run: pip install -U cython && pip install -e .[all] ${{ inputs.use_lkg && '-r lkg.txt' }} + - run: pip install -e .[all] ${{ inputs.use_lkg && '-r lkg.txt' }} name: Install econml[all] - run: sudo apt-get -yq install graphviz name: Install graphviz diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 034f1c097..65db3c813 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -91,7 +91,7 @@ jobs: python-version: 3.8 # because of our supported TensorFlow versions, must build on 3.6-3.8 - run: python -m pip install --upgrade pip && pip install --upgrade setuptools name: Ensure latest pip and setuptools - - run: pip install -U cython && pip install -e .[all] ${{ inputs.use_lkg && '-r lkg.txt' }} + - run: pip install -e .[all] ${{ inputs.use_lkg && '-r lkg.txt' }} name: Install econml[all] - run: python setup.py sdist name: Build sdist diff --git a/pyproject.toml b/pyproject.toml index 2d0d2c33f..16795f376 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ requires = [ "wheel", "oldest-supported-numpy", "scipy", - "cython" + "cython<3" # Our native code has several incompatibilities with Cython 3 ] build-backend = "setuptools.build_meta"