cliechti | 8864126 | 2002-07-29 02:09:04 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | from distutils.core import setup, Extension |
| 3 | |
cliechti | 49a8ecf | 2003-03-19 02:33:54 +0000 | [diff] [blame] | 4 | import os |
| 5 | if os.name == 'nt': |
| 6 | ext_modules =[ |
| 7 | Extension('_pyparallel', |
| 8 | sources=['src/win32/_pyparallel.c'], |
| 9 | ) |
| 10 | ] |
| 11 | else: |
| 12 | ext_modules = None |
| 13 | |
cliechti | 8864126 | 2002-07-29 02:09:04 +0000 | [diff] [blame] | 14 | setup (name = "pyparallel", |
| 15 | description="Python Parallel Port Extension", |
| 16 | version="0.1", |
| 17 | author="Chris Liechti", |
| 18 | author_email="cliechti@gmx.net", |
| 19 | url="http://pyserial.sourceforge.net/", |
| 20 | packages=['parallel'], |
| 21 | license="Python", |
| 22 | long_description="Python Parallel Port Extension for Win32, Linux, BSD", |
cliechti | 49a8ecf | 2003-03-19 02:33:54 +0000 | [diff] [blame] | 23 | ext_modules = ext_modules |
cliechti | 8864126 | 2002-07-29 02:09:04 +0000 | [diff] [blame] | 24 | ) |