Skip to content

Commit

Permalink
Use build from distutils
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Feb 19, 2022
1 parent 05fb3c1 commit b6d2d5a
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 b6d2d5a

Please sign in to comment.