python-jedi/unbundle.patch

35 lines
1.2 KiB
Diff
Raw Normal View History

Index: jedi-0.15.2/setup.py
===================================================================
--- jedi-0.15.2.orig/setup.py
+++ jedi-0.15.2/setup.py
@@ -2,7 +2,6 @@
from setuptools import setup, find_packages
-import os
import ast
__AUTHOR__ = 'David Halter'
@@ -17,8 +16,6 @@ readme = open('README.rst').read() + '\n
with open('requirements.txt') as f:
install_requires = f.read().splitlines()
-assert os.path.isfile("jedi/third_party/typeshed/LICENSE"), \
- "Please download the typeshed submodule first (Hint: git submodule update --init)"
setup(name='jedi',
version=version,
Index: jedi-0.15.2/jedi/inference/gradual/typeshed.py
===================================================================
--- jedi-0.15.2.orig/jedi/inference/gradual/typeshed.py
+++ jedi-0.15.2/jedi/inference/gradual/typeshed.py
@@ -10,7 +10,7 @@ from jedi.inference.gradual.stub_value i
from jedi.inference.value import ModuleValue
_jedi_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-TYPESHED_PATH = os.path.join(_jedi_path, 'third_party', 'typeshed')
+TYPESHED_PATH = "/usr/share/typeshed"
_IMPORT_MAP = dict(
_collections='collections',