Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 1bac160ea6
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (32 sloc) 1.033 kb
import os
from distutils.core import setup
def fullsplit(path, result=None):
"""
Split a pathname into components (the opposite of os.path.join) in a
platform-neutral way.
"""
if result is None:
result = []
head, tail = os.path.split(path)
if head == "":
return [tail] + result
if head == path:
return result
return fullsplit(head, [tail] + result)
package_dir = "reglib"
packages = []
for dirpath, dirnames, filenames in os.walk(package_dir):
# ignore dirnames that start with '.'
for i, dirname in enumerate(dirnames):
if dirname.startswith("."):
del dirnames[i]
if "__init__.py" in filenames:
packages.append(".".join(fullsplit(dirpath)))
setup(name='reglib',
version='0.1',
description='Library to interface with Oregon State\'s registration system',
author='David Petersen',
author_email='thedjpetersen@gmail.com',
install_requires = ['lxml'],
packages=packages
)
Jump to Line
Something went wrong with that request. Please try again.