From d5798e26dacafda496087569336f4887aeafaad6 Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Apr 22 2016 07:45:39 +0000 Subject: use setup.cfg to make bztar as the default format for sdist Fix #15 * old way of getting this done is removed by using setup.cfg instead * let git ignore dist/, build/, and *.egg-info Signed-off-by: Chenxiong Qi --- diff --git a/.gitignore b/.gitignore index 25d18c8..3a5149b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,6 @@ py-compile *~ *.swp /src/pyrpkg/*.py +build/ +dist/ +*.egg-info/ diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..fb48ca6 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[sdist] +formats=bztar \ No newline at end of file diff --git a/setup.py b/setup.py index 7233c4c..2b876fc 100755 --- a/setup.py +++ b/setup.py @@ -1,15 +1,11 @@ #!/usr/bin/python from setuptools import setup -import distutils.command.sdist try: from subprocess import getstatusoutput except: from commands import getstatusoutput -distutils.command.sdist.sdist.default_format = {'posix': 'bztar'} - - def bash_completion_dir(): (sts, output) = getstatusoutput( 'pkg-config --variable=completionsdir bash-completion')