Skip to content

Commit

Permalink
Remove distutils
Browse files Browse the repository at this point in the history
  • Loading branch information
emlowe committed Jan 22, 2024
1 parent 28acfbd commit 8445258
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ yum -y install epel-release \
&& cmake --version \
&& uname -a \
"""
before-build = "python -m pip install --upgrade pip"
before-build = "python -m pip install --upgrade pip && pip install looseversion"

[tool.cibuildwheel.macos]
build-verbosity = 0
before-all = "brew install gmp boost cmake"
before-build = "python -m pip install --upgrade pip"
before-build = "python -m pip install --upgrade pip && pip install looseversion"
environment = {MACOSX_DEPLOYMENT_TARGET="11", SYSTEM_VERSION_COMPAT=0, BUILD_VDF_CLIENT="N"}

[tool.cibuildwheel.windows]
build-verbosity = 0
before-all = "git clone https://github.com/Chia-Network/mpir_gc_x64.git"
environment = {BUILD_VDF_CLIENT="N", SETUPTOOLS_USE_DISTUTILS="stdlib"}
before-build = "pip install delvewheel"
before-build = "pip install delvewheel && pip install looseversion"
repair-wheel-command = """
delvewheel repair -v -w {dest_dir} {wheel} \
--add-path mpir_gc_x64 \
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import shutil
import subprocess
import sys
from distutils.command.install import install
from distutils.version import LooseVersion

from setuptools import Command, Extension, setup, errors
from setuptools.command.build import build
from setuptools.command.build_ext import build_ext
from setuptools.command.install import install
from looseversion import LooseVersion

BUILD_HOOKS = []
INSTALL_HOOKS = []
Expand Down

0 comments on commit 8445258

Please sign in to comment.