Skip to content

Commit

Permalink
Resorted to using setuptools (if available) for automatic
Browse files Browse the repository at this point in the history
dependency-handling
  • Loading branch information
faucamp committed Feb 15, 2013
1 parent 1606d75 commit aa30fe6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pyserial==2.6
pyserial>=2.6
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

""" python-gsmmodem installation script """

from distutils.core import setup
try:
from setuptools import setup
except ImportError:
from distutils.core import setup

with open('requires.txt') as f:
requires = f.readlines()

setup(name='python-gsmmodem',
version='0.1',
Expand Down Expand Up @@ -51,4 +57,5 @@

packages=['gsmmodem', 'gsmterm'],
package_dir = {'gsmterm': 'tools/gsmterm'},
scripts=['tools/gsmterm.py', 'tools/sendsms.py'])
scripts=['tools/gsmterm.py', 'tools/sendsms.py'],
install_requires=requires)

0 comments on commit aa30fe6

Please sign in to comment.