aboutsummaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-09-23 12:05:20 +0200
committerGuido Günther <agx@sigxcpu.org>2016-09-23 12:06:44 +0200
commite34b48e2376ff19a598f48cdc42c5053f2e77193 (patch)
tree0ebd54abe0b9177e7a040627266e4629b4b27776 /setup.py
parent4383678f7f25cc49c284d140a73f6ac03b951c3a (diff)
setup.py: flake8 clean
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py32
1 files changed, 17 insertions, 15 deletions
diff --git a/setup.py b/setup.py
index be05caa..6cdf17b 100644
--- a/setup.py
+++ b/setup.py
@@ -15,30 +15,32 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import os
from setuptools import setup
data_files = []
try:
import lsb_release
- if (lsb_release.get_distro_information()['ID'] in [ 'Debian' ] or
- os.path.exists('/etc/debian_version')):
- data_files = [('../etc/apt/apt.conf.d/',
- ['apt/50whatmaps_apt']),
- ('../etc/apt/apt.conf.d/',
- ['apt/20services']),
- ]
+ if (lsb_release.get_distro_information()['ID'] in ['Debian'] or
+ os.path.exists('/etc/debian_version')):
+ data_files = [('../etc/apt/apt.conf.d/',
+ ['apt/50whatmaps_apt']),
+ ('../etc/apt/apt.conf.d/',
+ ['apt/20services']),
+ ]
except ImportError:
pass
-setup(name = "whatmaps",
- author = 'Guido Günther',
- author_email = 'agx@sigxcpu.org',
- data_files = data_files,
- packages = ['whatmaps'],
- entry_points = {
- 'console_scripts': [ 'whatmaps = whatmaps.command:run' ],
+
+setup(name="whatmaps",
+ author='Guido Günther',
+ author_email='agx@sigxcpu.org',
+ data_files=data_files,
+ packages=['whatmaps'],
+ entry_points={
+ 'console_scripts': ['whatmaps = whatmaps.command:run'],
},
-)
+ )
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: