Skip to content

Commit

Permalink
Merge pull request #388 from isuruf/build_ext
Browse files Browse the repository at this point in the history
use build_ext from setuptools
  • Loading branch information
isuruf committed Feb 17, 2022
2 parents 1335554 + c9e9aa8 commit 05fb3c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import subprocess
import sys
import platform
from distutils.command.build_ext import build_ext as _build_ext
from distutils.command.build import build as _build

# Make sure the system has the right Python version.
if sys.version_info[:2] < (3, 7):
Expand All @@ -28,12 +26,16 @@
try:
from setuptools import setup
from setuptools.command.install import install as _install
from setuptools.command.build_ext import build_ext as _build_ext
from setuptools.command.build import build as _build
except ImportError:
use_setuptools = False

if not use_setuptools:
from distutils.core import setup
from distutils.command.install import install as _install
from distutils.command.build_ext import build_ext as _build_ext
from distutils.command.build import build as _build

cmake_opts = [("PYTHON_BIN", sys.executable),
("CMAKE_INSTALL_RPATH_USE_LINK_PATH", "yes")]
Expand Down

0 comments on commit 05fb3c1

Please sign in to comment.