merge and a few changes for the SyntaxError problem with mixin in (pip installation). -> fixes #79, also important for #82, #81, davidhalter/jedi-vim/issues/41, solution from #65

This commit is contained in:
David Halter
2012-12-12 18:08:49 +01:00
9 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
include README.rst
include LICENSE.txt
include AUTHORS.txt
include jedi/mixin/*.py
include jedi/mixin/*.pym
recursive-exclude * *.pyc

View File

@@ -200,7 +200,7 @@ class Parser(CachedModule):
if name == '__builtin__' and not is_py3k:
name = 'builtins'
path = os.path.dirname(os.path.abspath(__file__))
with open(os.path.sep.join([path, 'mixin', name]) + '.py') as f:
with open(os.path.sep.join([path, 'mixin', name]) + '.pym') as f:
s = f.read()
except IOError:
return {}

View File

@@ -20,7 +20,7 @@ setup(name='jedi',
keywords='python completion refactoring vim',
long_description=readme,
packages=['jedi'],
data_files={'jedi': ['mixin/*.py']},
package_data={'jedi': ['mixin/*.pym']},
platforms=['any'],
classifiers=[
'Development Status :: 4 - Beta',