Skip to content

Commit

Permalink
Merge pull request #389 from isuruf/distutils
Browse files Browse the repository at this point in the history
Use build from distutils
  • Loading branch information
isuruf committed Feb 19, 2022
2 parents 05fb3c1 + b6d2d5a commit c389254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@
print("Value {} for USE_DISTUTILS treated as False".
format(use_distutils))

from distutils.command.build import build as _build

if use_setuptools:
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 c389254

Please sign in to comment.