Skip to content

Commit 0a20c6a

Browse files
committed
-
1 parent 35355ec commit 0a20c6a

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

MANIFEST.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
recursive-include python_toolbox *
2-
recursive-exclude python_toolbox *.pyc
3-
recursive-exclude python_toolbox *.pyo
4-
recursive-include test_python_toolbox *
5-
recursive-exclude test_python_toolbox *.pyc
6-
recursive-exclude test_python_toolbox *.pyo
1+
recursive-include source_py2 *
2+
recursive-exclude source_py2 *.pyc
3+
recursive-exclude source_py2 *.pyo
4+
recursive-include source_py3 *
5+
recursive-exclude source_py3 *.pyc
6+
recursive-exclude source_py3 *.pyo
77
include README.markdown
88
include MANIFEST.in
99
include .coveragerc

setup.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
### Confirming correct Python version: ########################################
1313
# #
14-
if sys.version_info[1] <= 6:
14+
if sys.version_info[:2] <= (2, 5):
1515
raise Exception(
1616
"You're using Python <= 2.5, but this package requires either Python "
1717
"2.7, or 3.3 or above, so you can't use it unless you upgrade your "
@@ -21,9 +21,9 @@
2121
### Finished confirming correct Python version. ###############################
2222

2323
if sys.version_info[0] == 3:
24-
source_folder = '.source_py3'
24+
source_folder = 'source_py3'
2525
else:
26-
source_folder = '.source_py2'
26+
source_folder = 'source_py2'
2727

2828

2929
def get_python_toolbox_packages():
@@ -37,7 +37,7 @@ def get_python_toolbox_packages():
3737
3838
'''
3939
return ['python_toolbox.' + p for p in
40-
setuptools.find_packages('./python_toolbox')] + \
40+
setuptools.find_packages('%s/python_toolbox' % source_folder)] + \
4141
['python_toolbox']
4242

4343

@@ -52,7 +52,8 @@ def get_test_python_toolbox_packages():
5252
5353
'''
5454
return ['test_python_toolbox.' + p for p in
55-
setuptools.find_packages('./test_python_toolbox')] + \
55+
setuptools.find_packages('%s/test_python_toolbox'
56+
% source_folder)] + \
5657
['test_python_toolbox']
5758

5859

@@ -145,9 +146,10 @@ def get_packages():
145146
description='A collection of Python tools for various tasks',
146147
author='Ram Rachum',
147148
author_email='ram@rachum.com',
148-
package_dir=source_folder,
149+
package_dir={'': source_folder},
149150
packages=get_packages(),
150-
scripts=['test_python_toolbox/scripts/_test_python_toolbox.py'],
151+
scripts=['%s/test_python_toolbox/scripts/_test_python_toolbox.py'
152+
% source_folder],
151153
long_description=my_long_description,
152154
license='MIT',
153155
classifiers=my_classifiers,

0 commit comments

Comments
 (0)