Skip to content

Commit

Permalink
[sg fromlist] 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"

PR codypiersall#129
  • Loading branch information
mlasch committed Apr 11, 2024
1 parent 4ad3f92 commit db1e116
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 @@ -144,25 +144,20 @@ class BuildBuild(build_ext):
"""
Custom build command
"""
build_ext.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.
"""
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")

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

Expand Down

0 comments on commit db1e116

Please # to comment.