From dfcc47ffacdadb35e839b89e07acbdfe5778a1ff Mon Sep 17 00:00:00 2001 From: Marc Lasch Date: Wed, 10 Apr 2024 13:23:21 +0200 Subject: [PATCH] setup.py: Remove build-deps user option 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" --- setup.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 5de27ad..952ef8f 100644 --- a/setup.py +++ b/setup.py @@ -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): """ @@ -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