File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1111
1212### Confirming correct Python version: ########################################
1313# #
14- if sys .version_info [0 ] >= 3 :
15- raise Exception ("Python 3.x is not supported, only Python 2.6 and Python "
16- "2.7." )
1714if sys .version_info [1 ] <= 5 :
1815 raise Exception (
1916 "You're using Python <= 2.5, but this package requires either Python "
20- "2.6 or Python 2.7, so you can't use it unless you upgrade your "
17+ "2.6, 2.7, or 3.3+ , so you can't use it unless you upgrade your "
2118 "Python version."
2219 )
2320# #
2421### Finished confirming correct Python version. ###############################
2522
23+ if sys .version_info [0 ] == 3 :
24+ source_folder = '.source_py3'
25+ else :
26+ source_folder = '.source_py2'
27+
28+
2629def get_python_toolbox_packages ():
2730 '''
2831 Get all the packages in `python_toolbox`.
@@ -141,6 +144,7 @@ def get_packages():
141144 description = 'A collection of Python tools for various tasks' ,
142145 author = 'Ram Rachum' ,
143146 author_email = 'ram@rachum.com' ,
147+ package_dir = source_folder ,
144148 packages = get_packages (),
145149 scripts = ['test_python_toolbox/scripts/_test_python_toolbox.py' ],
146150 long_description = my_long_description ,
You can’t perform that action at this time.
0 commit comments