diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-08-06 15:13:03 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-08-06 15:13:03 -0700 |
commit | 9532822afccc8db328e07992313d458192f2a367 (patch) | |
tree | 8aa5907282100e65648020b130c3e845b8a1da8b /attoconf/lib/install.py | |
parent | b26aadbf16f4873411f77f08ebdd228528c5723b (diff) | |
download | attobuild-9532822afccc8db328e07992313d458192f2a367.tar.gz attobuild-9532822afccc8db328e07992313d458192f2a367.tar.bz2 attobuild-9532822afccc8db328e07992313d458192f2a367.tar.xz attobuild-9532822afccc8db328e07992313d458192f2a367.zip |
All specifying varname, and fix bugs
Diffstat (limited to 'attoconf/lib/install.py')
-rw-r--r-- | attoconf/lib/install.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/attoconf/lib/install.py b/attoconf/lib/install.py index d8d6cf5..444c167 100644 --- a/attoconf/lib/install.py +++ b/attoconf/lib/install.py @@ -20,7 +20,7 @@ from __future__ import print_function, division, absolute_import import os from ..classy import ClassyProject -from ..types import shell_word, version, filepath +from ..types import shell_word, version, filepath, quoted_string def exec_prefix(build, EPREFIX): @@ -28,12 +28,7 @@ def exec_prefix(build, EPREFIX): PREFIX, origin = build.vars['PREFIX'] if origin != 'default': origin = 'derived from PREFIX' - build.vars['EXEC_PREFIX'] = (PREFIX, origin) - # is this a good idea? is there a better way? - # how will this interfere with hashing? - # at least we don't have to worry about the environment ... - build.vars['EPREFIX'] = build.vars['EXEC_PREFIX'] - del build.vars['EXEC_PREFIX'] + build.vars['EPREFIX'] = (PREFIX, origin) def bindir(build, DIR): if DIR is None: @@ -196,7 +191,7 @@ class Install(ClassyProject): hidden=True, help_var='VERSION') self.add_option('--package-name', init=self.package_name, - type=version, check=None, + type=quoted_string, check=None, help='Long name of this package (don\'t change)', hidden=True, help_var='NAME') @@ -213,7 +208,7 @@ class Install(ClassyProject): type=filepath, check=exec_prefix, help='install architecture-dependent files in EPREFIX', hidden=False, - help_var='EPREFIX', help_def='PREFIX') + var='EPREFIX', help_def='PREFIX') self.add_help('Fine tuning of the installation directories:', hidden=False) |