From 6b6c6cf538776ad0c68415fce33b1553d6290398 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Thu, 20 Oct 2016 18:55:35 +0200 Subject: [PATCH] stop being smart for sdist should fix #114 --- setup.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/setup.py b/setup.py index 9204a5fa..6870d5d5 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,6 @@ import os import sys import setuptools -from setuptools.command.sdist import sdist as sdist_orig PROBLEMATIC_COMMANDS = 'install', 'develop', 'easy_install', 'bdist_egg' @@ -39,25 +38,6 @@ def scm_config(): long_description = fp.read() -class sdist(sdist_orig): - def make_release_tree(self, base_dir, files): - sdist_orig.make_release_tree(self, base_dir, files) - target = os.path.join(base_dir, 'setup.py') - with open(__file__) as fp: - template = fp.read() - ver = self.distribution.version - if not ver: - from setuptools_scm import get_version - ver = get_version(**scm_config()) - - finalized = template.replace( - 'use_scm_version=scm_config,\n', - 'version="%s",\n' % ver) - os.remove(target) - with open(target, 'w') as fp: - fp.write(finalized) - - arguments = dict( name='setuptools_scm', url='https://github.com/pypa/setuptools_scm/', @@ -116,7 +96,6 @@ def make_release_tree(self, base_dir, files): 'Topic :: System :: Software Distribution', 'Topic :: Utilities', ], - cmdclass={'sdist': sdist} ) if __name__ == '__main__':