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 10, 2024
1 parent d8d40ee commit 9f64236
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 @@ -145,10 +144,6 @@ class BuildBuild(build_ext):
"""
Custom build command
"""

# dbuild.user_options += [
# ('build-deps', None, 'build nng and mbedtls before building the module')
# ]
build_ext.user_options += [
("build-deps", None, "build nng and mbedtls before building the module")
]
Expand All @@ -158,7 +153,6 @@ 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)
self.build_deps = "yes"

Expand All @@ -170,7 +164,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 9f64236

Please sign in to comment.