8000 setup.py: fixed incorrect handling of toplevel package path - I must … · lachico/GitPython@5eb7fd3 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 4 additions & 5 deletions
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)
0