~ubuntu-branches/ubuntu/hardy/python2.4/hardy-updates

« back to all changes in this revision

Viewing changes to debian/patches/egg-info-no-version.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-03-05 11:23:41 UTC
  • Revision ID: james.westby@ubuntu.com-20070305112341-b1ov8olgnmndy5yc
Tags: 2.4.4-2ubuntu3
* When trying to import the profile and pstats modules, don't
  exit, add a hint to the exception pointing to the python-profiler
  package, don't exit.
* Do not encode the python version into the .egg-info name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh -e
2
2
 
3
 
# DP: distutils: Install an .egg-info file as done for python2.5. Do not encode
4
 
# DP: the module version and python version into the .egg-info name.
 
3
# DP: distutils: Install an .egg-info file as done for python2.5.
 
4
# DP: Do not encode the python version into the .egg-info name.
5
5
 
6
6
dir=
7
7
if [ $# -eq 3 -a "$2" = '-d' ]; then
27
27
diff -urN Lib/distutils/command.orig/install_egg_info.py ./Lib/distutils/command/install_egg_info.py
28
28
--- Lib/distutils/command.orig/install_egg_info.py      1970-01-01 01:00:00.000000000 +0100
29
29
+++ Lib/distutils/command/install_egg_info.py   2007-01-26 15:10:16.000000000 +0100
30
 
@@ -0,0 +1,76 @@
 
30
@@ -0,0 +1,77 @@
31
31
+"""distutils.command.install_egg_info
32
32
+
33
33
+Implements the Distutils 'install_egg_info' command, for installing
51
51
+
52
52
+    def finalize_options(self):
53
53
+        self.set_undefined_options('install_lib',('install_dir','install_dir'))
54
 
+        basename = "%s.egg-info" % (
 
54
+        basename = "%s-%s.egg-info" % (
55
55
+            to_filename(safe_name(self.distribution.get_name())),
 
56
+            to_filename(safe_version(self.distribution.get_version()))
56
57
+        )
57
58
+        self.target = os.path.join(self.install_dir, basename)
58
59
+        self.outputs = [self.target]