[ZODB-Dev] ZODB4 setup.py: Small patch

Thomas Guettler Thomas Guettler <thomas@thomas-guettler.de>
Tue, 1 Apr 2003 17:10:46 +0200


Hi!

I downloaded ZODB4 by downloading the tarball from cvs (webfrontend)
today.

"python setup.py install" failed:

Traceback (most recent call last):
  File "setup.py", line 238, in ?
    distclass = MyDistribution,
  File "/usr/lib/python2.2/distutils/core.py", line 138, in setup
    dist.run_commands()
  File "/usr/lib/python2.2/distutils/dist.py", line 893, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.2/distutils/dist.py", line 913, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.2/distutils/command/install.py", line 495, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.2/distutils/cmd.py", line 330, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.2/distutils/dist.py", line 913, in run_command
    cmd_obj.run()
  File "setup.py", line 130, in run
    extra.copy_files(self, self.install_dir)
NameError: global name 'extra' is not defined

After renaming "extra" to "finder" it works, and "python test.py -v" is OK.
The small patch:

"""
> diff -u setup.py-orig setup.py
--- setup.py-orig       Tue Apr  1 16:55:02 2003
+++ setup.py    Tue Apr  1 16:54:25 2003
@@ -127,7 +127,7 @@
 class MyLibInstaller(installcmd):
     def run(self):
         installcmd.run(self)
-        extra.copy_files(self, self.install_dir)
+        finder.copy_files(self, self.install_dir)
 
 class MyDistribution(Distribution):
     # To control the selection of MyLibInstaller and MyPyBuilder, we
"""

I use python2.2.1 since it is the default in debian. According to
Doc/user.txt this should work:
 
 ZODB 4 requires Python 2.2.1 or higher.  Some of the code -- notably
 the support for persistence of class objects -- requires bug fixes
 that will be released with Python 2.2.2.


 Regards,
  Thomas

-- 
Thomas Guettler <guettli@thomas-guettler.de>
http://www.thomas-guettler.de