[Distutils] Error on CVS

Jeremy Sanders jeremy at jeremysanders.net
Thu Apr 14 21:57:22 CEST 2005


[jss at serv veusz]$ python setup.py bdist_rpm
running bdist_rpm
creating build
creating build/bdist.linux-i686
creating build/bdist.linux-i686/rpm
creating build/bdist.linux-i686/rpm/SOURCES
creating build/bdist.linux-i686/rpm/SPECS
creating build/bdist.linux-i686/rpm/BUILD
creating build/bdist.linux-i686/rpm/RPMS
creating build/bdist.linux-i686/rpm/SRPMS
writing 'build/bdist.linux-i686/rpm/SPECS/veusz.spec'
Traceback (most recent call last):
   File "setup.py", line 62, in ?
     packages = ['veusz',
   File "/data/home/jss/code/veusz/veusz/distutils/core.py", line 151, in 
setup
     dist.run_commands()
   File "/data/home/jss/code/veusz/veusz/distutils/dist.py", line 974, in 
run_commands
     self.run_command(cmd)
   File "/data/home/jss/code/veusz/veusz/distutils/dist.py", line 994, in 
run_command
     cmd_obj.run()
   File "/data/home/jss/code/veusz/veusz/distutils/command/bdist_rpm.py", 
line 301, in run
     saved_dist_files = self.distributuion.dist_files[:]
   File "/data/home/jss/code/veusz/veusz/distutils/cmd.py", line 112, in 
__getattr__
     raise AttributeError, attr
AttributeError: distributuion


Looks like a typo! Here's a patch.

--- command/bdist_rpm.py~       2005-03-28 02:05:48.000000000 +0100
+++ command/bdist_rpm.py        2005-04-14 20:56:52.500042048 +0100
@@ -298,7 +298,7 @@

          # Make a source distribution and copy to SOURCES directory with
          # optional icon.
-        saved_dist_files = self.distributuion.dist_files[:]
+        saved_dist_files = self.distribution.dist_files[:]
          sdist = self.reinitialize_command('sdist')
          if self.use_bzip2:
              sdist.formats = ['bztar']


Jeremy

-- 
Jeremy Sanders <jeremy at jeremysanders.net>
http://www.jeremysanders.net/                Cambridge, UK
Public Key Server PGP Key ID: E1AAE053


More information about the Distutils-SIG mailing list