Commits

Steven Knight  committed 07dabd3

Build a Debian package, too.

  • Participants
  • Parent commits e91ccf7

Comments (0)

Files changed (9)

 platform = distutils.util.get_platform()
 
 ENV = { 'PATH' : os.environ['PATH'] }
-for key in ['AEGIS_PROJECT', 'PYTHONPATH']:
+for key in ['AEGIS_PROJECT', 'LOGNAME', 'PYTHONPATH']:
     if os.environ.has_key(key):
         ENV[key] = os.environ[key]
 
 #python2_scons = {
 #        'pkg'          : 'python2-' + project,
 #        'src_subdir'   : 'engine',
-#        'inst_subdir'  : os.path.join('lib', 'python2.1', 'site-packages'),
+#        'inst_subdir'  : os.path.join('lib', 'python2.2', 'site-packages'),
 #
 #        'debian_deps'  : [
 #                            'debian/changelog',
                     ])
 
         old = os.path.join('lib', 'scons', '')
-        new = os.path.join('lib', 'python2.1', 'site-packages', '')
+        new = os.path.join('lib', 'python2.2', 'site-packages', '')
         def xxx(s, old=old, new=new):
             if s[:len(old)] == old:
                 s = new + s[len(old):]

File debian/changelog

 
   * Third beta release.
 
- -- Steven Knight <knight@baldmt.com>  Tue Aug 19 19:05:23 CDT 2003
+ -- Steven Knight <knight@baldmt.com>  Wed, 20 Aug 2003 03:45:28 -0500
 
 
 scons (0.91-1) unstable; urgency=low
 
 scons (0.08-1) unstable; urgency=low
 
-  * Second post-official-Debian build cycle
+  *  New upstream release (Closes: #158373)
 
- -- Steven Knight <knight@baldmt.com>  Mon, 15 Jul 2002 12:08:51 -0500
+ -- Moshe Zadka <moshez@debian.org>  Mon, 21 Oct 2002 16:52:11 +0200
 
+scons (0.07-3) unstable; urgency=low
+
+  * Removing /usr/doc links
+  * Python 2.1 -> Python 2.2 
+
+ -- Moshe Zadka <moshez@debian.org>  Tue, 27 Aug 2002 18:48:02 +0300
+
+scons (0.07-2) unstable; urgency=low
+
+  * Ugh, who would put distutils.core in python-dev? Changing build
+    dependancies (Closes: #146601)
+  * While we're at it, update Standards-Version
+
+ -- Moshe Zadka <moshez@debian.org>  Sat, 11 May 2002 08:25:07 +0300
 
 scons (0.07-1) unstable; urgency=low
 
-  * Folding uploaded Debian build into SCons source
+  * New upstream version
+  * Packaging properly, instead of as debian native
+  * Modifying copyright to include upstream location (Closes: #144491) 
+  * Fixing my e-mail address (Closes: #144490)
+    * Thanks for looking after my packages, tbm ;-)
 
- -- Steven Knight <knight@baldmt.com>  Thu,  2 May 2002 13:37:16 -0500
+ -- Moshe Zadka <moshez@debian.org>  Sat,  4 May 2002 13:05:53 +0300
 
+scons (0.06-1) unstable; urgency=low
+
+  * New upstream version 
+
+ -- Moshe Zadka <moshez@debian.org>  Mon, 15 Apr 2002 19:22:09 +0300
 
 scons (0.05-1) unstable; urgency=low
 

File debian/control

 Section: devel
 Priority: optional
 Maintainer: Moshe Zadka <moshez@debian.org>
-Build-Depends-Indep: debhelper (>> 2.0.0), python2.1
-Standards-Version: 3.2.1
+Build-Depends-Indep: debhelper (>> 2.0.0), python2.2-dev
+Standards-Version: 3.5.6
 
 Package: scons
 Architecture: all
-Depends: python2.1
+Depends: python2.2
 Description: A replacement for Make
- Scons is able to build files from other files, based on the
- dependency DAG.
+ SCons is an Open Source software construction tool--that is, a build
+ tool; an improved substitute for the classic Make utility; a better
+ way to build software.  SCons is based on the design which won the
+ Software Carpentry build tool design competition in August 2000.  SCons
+ "configuration files" are Python scripts that call an API to establish
+ dependencies and specify how targets are built.  SCons maintains a global
+ view of all dependencies in a tree, and can scan source (or other) files
+ for implicit dependencies, such as files specified on #include lines.
+ SCons uses MD5 signatures to rebuild only when the contents of a file
+ have really changed, not just when the timestamp has been touched.
+ SCons supports side-by-side variant builds, and is easily extended with
+ user-defined Builder and/or Scanner objects.
 usr/bin
-usr/lib/python2.1/site-packages
+usr/lib/python2.2/site-packages
 usr/share/doc/scons
 usr/share/man/man1

File debian/postinst

 case "$1" in
         configure|abort-upgrade|abort-remove|abort-deconfigure)
                 dpkg --listfiles $NAME | grep '\.py$' | \
-                     xargs -n 1 /usr/bin/python -c 'import py_compile,sys;py_compile.compile(sys.argv[1])'
+                     xargs -n 1 /usr/bin/python2.2 -c 'import py_compile,sys;py_compile.compile(sys.argv[1])'
                 dpkg --listfiles $NAME | grep '\.py$' | \
-                     xargs -n 1 /usr/bin/python -O -c 'import py_compile,sys;py_compile.compile(sys.argv[1])'
+                     xargs -n 1 /usr/bin/python2.2 -O -c 'import py_compile,sys;py_compile.compile(sys.argv[1])'
         ;;
 esac

File debian/rules

 # Overridable variables added to support building test .deb files
 # as part of routine SCons builds.  --SK
 BUILDDEB_OPTIONS=
-PYTHON=/usr/bin/python2.1
+PYTHON=/usr/bin/python2.2
 #######
 
 # Uncomment this to turn on verbose mode.
 	@# already exist on our non-Debian test build systems.  Hence,
 	@# we do a lot of mkdir -p and rm -f here...  --SK
 	@########
-	mkdir -p debian/scons/usr/lib/python2.1/site-packages/
-	rm -rf debian/scons/usr/lib/python2.1/site-packages/SCons
-	cp -r build/lib/SCons debian/scons/usr/lib/python2.1/site-packages/
+	mkdir -p debian/scons/usr/lib/python2.2/site-packages/
+	rm -rf debian/scons/usr/lib/python2.2/site-packages/SCons
+	cp -r build/lib/SCons debian/scons/usr/lib/python2.2/site-packages/
 
 	mkdir -p debian/scons/usr/bin/
 	rm -f debian/scons/usr/bin/scons
 	cp build/scripts/scons debian/scons/usr/bin/scons
 	cp build/scripts/sconsign debian/scons/usr/bin/sconsign
 else
-	sed '1s|.*|#!/usr/bin/python2.1|' build/scripts/scons > debian/scons/usr/bin/scons
-	sed '1s|.*|#!/usr/bin/python2.1|' build/scripts/sconsign > debian/scons/usr/bin/sconsign
+	sed '1s|.*|#!/usr/bin/python2.2|' build/scripts/scons > debian/scons/usr/bin/scons
+	sed '1s|.*|#!/usr/bin/python2.2|' build/scripts/sconsign > debian/scons/usr/bin/sconsign
 endif
 	chmod +x debian/scons/usr/bin/scons
 	chmod +x debian/scons/usr/bin/sconsign
 	mkdir -p debian/scons/usr/share/doc/scons
 	rm -f debian/scons/usr/share/doc/scons/changelog
 	rm -f debian/scons/usr/share/doc/scons/README.txt
+	rm -f debian/scons/usr/share/doc/scons/CHANGES.txt
 	rm -f debian/scons/usr/share/doc/scons/*.gz
 	rm -f debian/scons/usr/share/doc/scons/copyright
 
 	cp README.txt debian/scons/usr/share/doc/scons/
+	cp CHANGES.txt debian/scons/usr/share/doc/scons/
 
 	gzip -9 debian/scons/usr/share/doc/scons/*
 

File src/CHANGES.txt

 
 
 
-RELEASE 0.92 - Tue Aug 19 19:05:23 CDT 2003
+RELEASE 0.92 - Wed, 20 Aug 2003 03:45:28 -0500
 
   From Charles Crain and Gary Oberbrunner:
 
   - Allow the DefaultEnvironment() function to take arguments and pass
     them to instantiation of the default construction environment.
 
+  - Update the Debian package so it uses Python 2.2 and more closely
+    resembles the currently official Debian packaging info.
+
   From Gerard Patel
 
   - When the yacc -d flag is used, take the .h file base name from the

File src/RELEASE.txt

 
 
 
-RELEASE 0.92 - Tue Aug 19 19:05:23 CDT 2003
+RELEASE 0.92 - Wed, 20 Aug 2003 03:45:28 -0500
 
   This is the third beta release of SCons.  Please consult the
   CHANGES.txt file for a list of specific changes since last release.
 
+  Please note the following important changes since release 0.91:
+
+  - The Debian package available from the SCons web site now
+    uses Python version 2.2.
+
   Please note the following important changes since release 0.90:
 
   - The spelling of the 'validater' keyword argument to the

File src/setup.py

     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.
 
 _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
 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__",
     '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: