Skip to content

Commit

Permalink
setup.py: Remove superfluous distutils import
Browse files Browse the repository at this point in the history
distutils is deprecated with removal planned for Python 3.12.
  • Loading branch information
mlasch committed Apr 14, 2024
1 parent 47d6bd1 commit 7166166
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
os.environ["CFLAGS"] = "-mpclmul -msse2 -maes"
from setuptools import Command, setup, find_packages
from setuptools.command.build_ext import build_ext
from distutils.command.build import build as dbuild

WINDOWS = sys.platform == "win32"

Expand Down Expand Up @@ -146,16 +145,11 @@ class BuildBuild(build_ext):
Custom build command
"""

# dbuild.user_options += [
# ('build-deps', None, 'build nng and mbedtls before building the module')
# ]

def initialize_options(self):
"""
Set default values for options
Each user option must be listed here with their default value.
"""
# dbuild.initialize_options(self)
build_ext.initialize_options(self)

def run(self):
Expand All @@ -165,7 +159,6 @@ def run(self):
self.run_command("build_mbedtls")
self.run_command("build_nng")

# dbuild.run(self) # proceed with "normal" build steps
build_ext.run(self) # proceed with "normal" build steps


Expand Down

0 comments on commit 7166166

Please sign in to comment.