Skip to content

Commit

Permalink
setup.py: Remove build-deps user option
Browse files Browse the repository at this point in the history
Remove dysfunctioning and undocumented user option to skip building
`nng` and `mbedtls` libraries.

Also, using the build-deps config in setup.cfg resulted in a warning:

"site-packages/setuptools/dist.py:476: SetuptoolsDeprecationWarning:
Invalid dash-separated options"
  • Loading branch information
mlasch committed Apr 10, 2024
1 parent d8d40ee commit dfcc47f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@ class BuildBuild(build_ext):
# 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")
]

def initialize_options(self):
"""
Expand All @@ -160,15 +157,13 @@ def initialize_options(self):
"""
# dbuild.initialize_options(self)
build_ext.initialize_options(self)
self.build_deps = "yes"

def run(self):
"""
Running...
"""
if self.build_deps:
self.run_command("build_mbedtls")
self.run_command("build_nng")
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 dfcc47f

Please sign in to comment.