Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ynsta/steamcontroller.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStany MARCEL <stanypub@gmail.com>2016-11-23 00:57:35 +0300
committerStany MARCEL <stanypub@gmail.com>2016-11-23 01:00:55 +0300
commit3edb4a9a3fb7d775c499a76b1e32299282a9005d (patch)
treef259b09d1369ed5cf3309eb7fc398758b2368f29
parent7ba1740349e706f3732c6cd85fb612cdf22f8977 (diff)
Add distutils.core fallback
Signed-off-by: Stany MARCEL <stanypub@gmail.com>
-rwxr-xr-xsetup.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 6697d6f..620a4e1 100755
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,10 @@
#!/usr/bin/env python
import sys
-from setuptools import setup, Extension
+try:
+ from setuptools import setup, Extension
+except ImportError:
+ from distutils.core import setup, Extension
uinput = Extension('libuinput',
sources = ['src/uinput.c'])