# HG changeset patch # User Radek Brich # Date 1404921408 -7200 # Node ID 497067ee16b7aa802366293b93fa54da17d02592 # Parent 6caad95d4540220110c148d2a098c00e0979f398 Update setup.py: Do not rename the package to python3-pycolib for bdist_rpm target. This should be done by packager if needed. diff -r 6caad95d4540 -r 497067ee16b7 setup.py --- a/setup.py Wed Jul 09 17:56:05 2014 +0200 +++ b/setup.py Wed Jul 09 17:56:48 2014 +0200 @@ -1,32 +1,15 @@ #!/usr/bin/env python3 from distutils.core import setup -from distutils.command.bdist_rpm import bdist_rpm -import sys - - -class my_bdist_rpm(bdist_rpm): - def __init__(self, *args, **kwargs): - bdist_rpm.__init__(self, *args, **kwargs) - self._alter_name() - - def _alter_name(self): - """Prepend "python-" or "python3-" in package name.""" - if sys.version_info.major == 3: - prefix = 'python3-' - else: - prefix = 'python-' - self.distribution.metadata.name = prefix + self.distribution.metadata.name setup( name='pycolib', - version='0.0.1', + version='0.0.2', description='Library of small auxiliary modules', author='Radek Brich', author_email='radek.brich@devl.cz', url='http://hg.devl.cz/pycolib', packages=['pycolib'], - cmdclass={'bdist_rpm': my_bdist_rpm}, )