diff options
author | Steven Knight <knight@baldmt.com> | 2003-08-20 17:00:00 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-08-20 17:00:00 (GMT) |
commit | b8ad44992b38ccbe31ab15d1f60d41b9d9e67c7c (patch) | |
tree | d86afbdaab7b2d22b7c4c04a7b410a0f97bc8791 /src/setup.py | |
parent | 1c0a7d503532ad8b1129192872d15a72c441ad28 (diff) | |
download | SCons-b8ad44992b38ccbe31ab15d1f60d41b9d9e67c7c.zip SCons-b8ad44992b38ccbe31ab15d1f60d41b9d9e67c7c.tar.gz SCons-b8ad44992b38ccbe31ab15d1f60d41b9d9e67c7c.tar.bz2 |
Build a Debian package, too.
Diffstat (limited to 'src/setup.py')
-rw-r--r-- | src/setup.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/setup.py b/src/setup.py index c59b240..be38a84 100644 --- a/src/setup.py +++ b/src/setup.py @@ -39,6 +39,7 @@ try: import distutils.command.install import distutils.command.install_lib import distutils.command.install_scripts + import distutils.command.build_scripts except ImportError: sys.stderr.write("""Could not import distutils. @@ -52,6 +53,7 @@ your system, or on how to install SCons from a different package. _install = distutils.command.install.install _install_lib = distutils.command.install_lib.install_lib _install_scripts = distutils.command.install_scripts.install_scripts +_build_scripts = distutils.command.build_scripts.build_scripts standard_lib = 0 standalone_lib = 0 @@ -181,9 +183,15 @@ class install_lib(_install_lib): class install_scripts(_install_scripts): def finalize_options(self): _install_scripts.finalize_options(self) + self.build_dir = os.path.join('build', 'scripts') global installed_scripts_dir installed_scripts_dir = self.install_dir +class build_scripts(_build_scripts): + def finalize_options(self): + _build_scripts.finalize_options(self) + self.build_dir = os.path.join('build', 'scripts') + arguments = { 'name' : "scons", 'version' : "__VERSION__", @@ -199,7 +207,8 @@ arguments = { 'scripts' : ['script/scons', 'script/sconsign'], 'cmdclass' : {'install' : install, 'install_lib' : install_lib, - 'install_scripts' : install_scripts} + 'install_scripts' : install_scripts, + 'build_scripts' : build_scripts} } try: |