Skip to content

Commit 056bc33

Browse files
committed
Fix install on Python 3.5
1 parent 24f07f1 commit 056bc33

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ def find_data_files(base, globs):
7070
'Topic :: Software Development',
7171
]
7272

73+
package_dir = {'mypy': 'mypy'}
74+
if sys.version_info < (3, 5, 0):
75+
package_dir[''] = 'lib-typing/3.2'
76+
7377
setup(name='mypy-lang',
7478
version=version,
7579
description=description,
@@ -79,7 +83,7 @@ def find_data_files(base, globs):
7983
url='http://www.mypy-lang.org/',
8084
license='MIT License',
8185
platforms=['POSIX'],
82-
package_dir={'': 'lib-typing/3.2', 'mypy': 'mypy'},
86+
package_dir=package_dir,
8387
py_modules=['typing'] if sys.version_info < (3, 5, 0) else [],
8488
packages=['mypy'],
8589
scripts=['scripts/mypy', 'scripts/stubgen'],

0 commit comments

Comments
 (0)