Skip to content

Commit 5eb7fd3

Browse files
committed
setup.py: fixed incorrect handling of toplevel package path - I must have been very confused when setting it up that way
1 parent 031271e commit 5eb7fd3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

setup.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def make_release_tree (self, base_dir, files):
4040

4141

4242
def _stamp_version(filename):
43-
found, out = False, []
43+
found, out = False, list()
4444
try:
4545
f = open(filename, 'r')
4646
except (IOError, OSError):
@@ -61,18 +61,17 @@ def _stamp_version(filename):
6161
else:
6262
print >> sys.stderr, "WARNING: Couldn't find version line in file %s" % filename
6363

64-
6564
setup(name = "GitPython",
6665
cmdclass={'build_py': build_py, 'sdist': sdist},
6766
version = VERSION,
6867
description = "Python Git Library",
6968
author = "Sebastian Thiel, Michael Trier",
7069
author_email = "byronimo@gmail.com, mtrier@gmail.com",
7170
url = "http://gitorious.org/projects/git-python/",
72-
packages = ['git.'+p for p in find_packages('.')],
73-
py_modules = ['git.'+f[:-3] for f in os.listdir('.') if f.endswith('.py')],
71+
packages = find_packages('.'),
72+
py_modules = ['git.'+f[:-3] for f in os.listdir('./git') if f.endswith('.py')],
7473
package_data = {'git.test' : ['fixtures/*']},
75-
package_dir = {'git':''},
74+
package_dir = {'git':'git'},
7675
license = "BSD License",
7776
requires=('gitdb (>=0.5.1)',),
7877
install_requires='gitdb >= 0.5.1',

0 commit comments

Comments
 (0)