Cheng Tang | c92b3ea | 2012-07-02 17:29:24 +0800 | [diff] [blame] | 1 | #!/usr/bin/python |
| 2 | # -*- coding: utf-8 -*- |
| 3 | |
| 4 | from distutils.core import setup |
| 5 | import os |
| 6 | |
| 7 | def find_all_dist_module(): |
| 8 | base_dir = 'src' |
| 9 | all_files = os.listdir(base_dir) |
| 10 | modules=[] |
| 11 | for f in all_files: |
| 12 | fname = os.path.join(base_dir,f) |
| 13 | if os.path.isfile(fname): |
| 14 | ext = f.split('.')[-1] |
| 15 | #print f.split('.') |
| 16 | if ext == 'py': |
| 17 | modules.append(f) |
| 18 | |
| 19 | return modules |
| 20 | |
| 21 | #print find_all_dist_module() |
| 22 | |
| 23 | setup( |
| 24 | name = 'tcutils', |
| 25 | version = "0.2", |
| 26 | description = "Cheng Tang 's python libraries", |
| 27 | author = 'Cheng Tang', |
| 28 | author_email = 'cashtang@gmail.com', |
| 29 | platforms=['All'], |
| 30 | packages=['tcutils'] |
| 31 | ) |