Skip to content
Newer
Older
100644 39 lines (32 sloc) 1.01 KB
f1d3e6a Fixed setup script
David Petersen authored
1 import os
2
c69bc46 @thedjpetersen Added setup script
authored
3 from distutils.core import setup
4
f1d3e6a Fixed setup script
David Petersen authored
5 def fullsplit(path, result=None):
6 """
7 Split a pathname into components (the opposite of os.path.join) in a
8 platform-neutral way.
9 """
10 if result is None:
11 result = []
12 head, tail = os.path.split(path)
13 if head == "":
14 return [tail] + result
15 if head == path:
16 return result
17 return fullsplit(head, [tail] + result)
18
f7697ef credit parser returns dict, added gpa parser, worked these changes in…
Kevin Ngo authored
19 package_dir = "reglib"
f1d3e6a Fixed setup script
David Petersen authored
20
21 packages = []
22 for dirpath, dirnames, filenames in os.walk(package_dir):
23 # ignore dirnames that start with '.'
24 for i, dirname in enumerate(dirnames):
25 if dirname.startswith("."):
26 del dirnames[i]
27 if "__init__.py" in filenames:
28 packages.append(".".join(fullsplit(dirpath)))
29
f7697ef credit parser returns dict, added gpa parser, worked these changes in…
Kevin Ngo authored
30 setup(name='reglib',
c69bc46 @thedjpetersen Added setup script
authored
31 version='0.1',
32 description='Library to interface with Oregon State\'s registration system',
33 author='David Petersen',
34 author_email='thedjpetersen@gmail.com',
7afc615 Added lxml as default requirement to setup.py
David Petersen authored
35 install_requires = ['lxml'],
f1d3e6a Fixed setup script
David Petersen authored
36 packages=packages
c69bc46 @thedjpetersen Added setup script
authored
37 )
f1d3e6a Fixed setup script
David Petersen authored
38
Something went wrong with that request. Please try again.