# HG changeset patch # User Paul Boddie # Date 1277062924 -7200 # Node ID 75b5b457146621a7f6fe36a44785c6868db14673 # Parent 121fd95d6cd3d9720135fdf1b5bfa0c510ccfa5a Attempted to support installation of the shedskin.lib package as data, avoiding undesirable byte-compilation during the post-installation activity. diff -r 121fd95d6cd3 -r 75b5b4571466 README.txt --- a/README.txt Sun Apr 11 22:44:43 2010 +0200 +++ b/README.txt Sun Jun 20 21:42:04 2010 +0200 @@ -24,6 +24,18 @@ cp -R ../shedskin-packaging/debian/ . +Since some problems have arisen in Shed Skin 0.5 with distutils, package data +installation and byte-compilation performed by Debian's python-central post- +installation scripts, the setup script needs to be patched: + +cp ../shedskin-packaging/setup.py.diff . +patch -p0 < setup.py.diff + +The shedskin.shared module also needs to be patched: + +cp ../shedskin-packaging/shared.py.diff . +patch -p0 < shared.py.diff + Using pbuilder, try and build the package (this example is using my signing key): @@ -32,11 +44,20 @@ Some files will appear in /var/cache/pbuilder/result/ (such as the binary package files), whereas others will appear in the parent directory. -Release History -=============== +Maintenance Notes +----------------- + +When packaging a new release, update the release history below along with the +debian/changelog file: + +debchange -v 0.5 -D unstable + +Shed Skin Release History +========================= Release Subversion Revision ------- ------------------- +0.5 1507 0.4 1363 0.3-2 1165 0.3-1 1165 diff -r 121fd95d6cd3 -r 75b5b4571466 debian/changelog --- a/debian/changelog Sun Apr 11 22:44:43 2010 +0200 +++ b/debian/changelog Sun Jun 20 21:42:04 2010 +0200 @@ -1,3 +1,9 @@ +shedskin (0.5) unstable; urgency=low + + * New upstream release. + + -- Paul Boddie Sun, 20 Jun 2010 17:23:17 +0200 + shedskin (0.4) unstable; urgency=low * Initial release (Closes: #564533) diff -r 121fd95d6cd3 -r 75b5b4571466 debian/rules --- a/debian/rules Sun Apr 11 22:44:43 2010 +0200 +++ b/debian/rules Sun Jun 20 21:42:04 2010 +0200 @@ -49,6 +49,7 @@ dh_testdir -i dh_testroot -i dh_pycentral -i + dh_install -i dh_installdocs -i dh_installchangelogs -i dh_installman -i debian/shedskin.1 diff -r 121fd95d6cd3 -r 75b5b4571466 debian/shedskin.install --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debian/shedskin.install Sun Jun 20 21:42:04 2010 +0200 @@ -0,0 +1,7 @@ +shedskin/lib/*.cpp usr/share/shedskin/lib/ +shedskin/lib/*.hpp usr/share/shedskin/lib/ +shedskin/lib/*.py usr/share/shedskin/lib/ +shedskin/lib/os/*.cpp usr/share/shedskin/lib/os/ +shedskin/lib/os/*.hpp usr/share/shedskin/lib/os/ +shedskin/lib/os/*.py usr/share/shedskin/lib/os/ +shedskin/FLAGS usr/share/shedskin/ diff -r 121fd95d6cd3 -r 75b5b4571466 setup.py.diff --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/setup.py.diff Sun Jun 20 21:42:04 2010 +0200 @@ -0,0 +1,10 @@ +--- setup.py 2010-06-20 20:55:37.000000000 +0200 ++++ setup.py 2010-06-20 20:55:47.000000000 +0200 +@@ -7,6 +7,5 @@ + description='Shed Skin is an experimental compiler, that can translate pure, but implicitly statically typed Python programs into optimized C++. It can generate stand-alone programs or extension modules that can be imported and used in larger Python programs.', + url='http://code.google.com/p/shedskin/', + scripts=['scripts/shedskin'], +- packages=['shedskin'], +- package_data={'shedskin': ['lib/*.cpp', 'lib/*.hpp', 'lib/*.py', 'lib/os/*.cpp', 'lib/os/*.hpp', 'lib/os/*.py', 'FLAGS']}, ++ packages=['shedskin'] + ) diff -r 121fd95d6cd3 -r 75b5b4571466 shared.py.diff --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/shared.py.diff Sun Jun 20 21:42:04 2010 +0200 @@ -0,0 +1,11 @@ +--- shedskin/shared.py 2010-06-20 21:19:21.000000000 +0200 ++++ shedskin/shared.py 2010-06-20 21:19:47.000000000 +0200 +@@ -39,7 +39,7 @@ + self.iterations = 0 + self.lambdawrapper = {} + self.sysdir = '/'.join(__file__.split(os.sep)[:-1]) +- self.libdir = connect_paths(self.sysdir, 'lib') ++ self.libdir = connect_paths('/usr/share/shedskin', 'lib') + self.main_mod = 'test' + self.cpp_keywords = set(['asm', 'auto', 'bool', 'case', 'catch', 'char', 'const', 'const_cast', 'default', 'delete', 'do', 'double', 'dynamic_cast', 'enum', 'explicit', 'export', 'extern', 'false', 'float', 'friend', 'goto', 'inline', 'int', 'long', 'mutable', 'namespace', 'new', 'operator', 'private', 'protected', 'public', 'register', 'reinterpret_cast', 'short', 'signed', 'register', 'sizeof', 'static', 'static_cast', 'struct', 'switch', 'template', 'this', 'throw', 'true', 'typedef', 'typeid', 'typename', 'union', 'unsigned', 'using', 'virtual', 'void', 'volatile', 'wchar_t']) + self.cpp_keywords.update(['stdin', 'stdout', 'stderr', 'std', 'abstract', 'st_mtime', 'st_atime', 'st_ctime', 'errno', 'fileno', 'environ', 'rand', 'optind', 'opterr', 'optopt', 'optarg', 'exit'])