summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-03-22 13:33:21 +0100
committermathieui <mathieui@mathieui.net>2014-03-22 13:33:21 +0100
commita8ba700e9828e9974bd0c9ca8e5b0ef27423461c (patch)
treed0cda4d4cee44176013c66c1cb0ebdae352ac6a1 /setup.py
parentbb00727e786dacaf9a5010d0256dc42051cfa636 (diff)
downloadpoezio-a8ba700e9828e9974bd0c9ca8e5b0ef27423461c.tar.gz
poezio-a8ba700e9828e9974bd0c9ca8e5b0ef27423461c.tar.bz2
poezio-a8ba700e9828e9974bd0c9ca8e5b0ef27423461c.tar.xz
poezio-a8ba700e9828e9974bd0c9ca8e5b0ef27423461c.zip
Remove warnings in setup.py and use setuptools instead of distutils
(but since it is not important, use distutils when setuptools is unavailable)
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 7fec5b92..0815e04e 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,9 @@
#!/usr/bin/env python3
-from distutils.core import setup, Extension
+try:
+ from setuptools import setup, Extension
+except ImportError:
+ from distutils.core import setup, Extension
+
import os, sys
module_poopt = Extension('poezio.poopt',