From 5d6013ea9cc1e2d66c78dfada8084babeea1053b Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 5 Nov 2020 16:30:35 +0100 Subject: [PATCH] option --local is superfluous, use --prefix --- setup.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/setup.py b/setup.py index 5541c98..335380e 100755 --- a/setup.py +++ b/setup.py @@ -32,13 +32,11 @@ def pEpLog(*msg): class BuildExtCommand(build_ext): user_options = build_ext.user_options + [ - ('local', None, 'Use local pEp install in HOME/USERPROFILE for libs/includes'), - ('prefix=', None, 'Use local pEp install in prefix for libs/includes'), + ('prefix=', None, 'Use pEp-base installation in prefix (libs/includes)'), ] def initialize_options(self): build_ext.initialize_options(self) - self.local = None != environ.get('PER_USER_DIRECTORY') self.prefix = getattr(self, "prefix=", None) def windowsGetInstallLocation(self): @@ -130,7 +128,6 @@ class BuildExtCommand(build_ext): def finalize_options(self): build_ext.finalize_options(self) - pEpLog("local: ", self.local) pEpLog("prefix: ", self.prefix) pEpLog("sys.platform: ", sys.platform) @@ -152,13 +149,6 @@ class BuildExtCommand(build_ext): includes = [] libdirs = [] - # Append home-dir - if self.local: - pEpLog("local mode") - home_include = [join(home, 'include')] - home_libdirs = [join(home, 'lib')] - includes += home_include - libdirs += home_libdirs # Append prefix-dir if self.prefix: