[Twisted-Python] Patches for ldaptor setup, so that bdist_rpm will work
Gregg Lind
gregg at renesys.com
Tue May 13 07:13:27 MDT 2008
These patches make it so that:
$ python setup.py bdist_rpm
will work in the usual way, making it simple for people to distribute
python-ldaptor
Thanks!
Gregg
babbledog.com
#### MANIFEST.in
include MANIFEST.in
include TODO
recursive-include debian *
recursive-include po *
recursive-include ldaptor/apps *
#### SETUP.PY
[gregg at irc01 ldaptor]$ diff -c ldaptor-snapshot*/setup.py | less
*** ldaptor-snapshot2/setup.py 2008-05-13 14:15:03.000000000 +0100
--- ldaptor-snapshot/setup.py 2007-06-18 23:12:23.000000000 +0100
***************
*** 118,135 ****
def run(self):
if not self.skip_build:
self.run_command('build_locale')
! self.outfiles = copy_tree(src=self.build_dir,
dst=self.install_dir,
dry_run=self.dry_run)
-
- def get_outputs (self):
- '''
- ## there needs to be a get_outputs method for build_rpm
- ## as part of distutils/install.py
- ## this should return a list of files to be installed. -- GRL
- '''
- return self.outfiles
-
if __name__=='__main__':
setup(name="ldaptor",
--- 118,126 ----
def run(self):
if not self.skip_build:
self.run_command('build_locale')
! copy_tree(src=self.build_dir,
dst=self.install_dir,
dry_run=self.dry_run)
if __name__=='__main__':
setup(name="ldaptor",
More information about the Twisted-Python
mailing list