Handle bundled dependencies
@@ -51,7 +51,7 @@ except NameError:
unicode = str
if False:
- PYTHONISTA_BUNDLED_MODULES = [
+ BUNDLED_MODULES = [
'bottle', 'beautifulsoup4', 'pycrypto', 'py-dateutil',
'dropbox', 'ecdsa', 'evernote', 'Faker', 'feedparser', 'flask', 'html2text',
'html5lib', 'httplib2', 'itsdangerous', 'jedi', 'jinja2', 'markdown', 'markdown2',
@@ -70,7 +70,7 @@ if False:
OLD_SITE_PACKAGES_FOLDER = os.path.expanduser('~/Documents/{}'.format(OLD_SITE_PACKAGES_DIR_NAME))
else:
- PYTHONISTA_BUNDLED_MODULES = []
+ BUNDLED_MODULES = ['certifi', 'chardet', 'colorama', 'cycler', 'dateutil', 'distlib', 'idna', 'ipaddress', 'jedi', 'lockfile', 'matplotlib', 'numpy', 'pandas', 'setuptools', 'progress', 'pyparsing', 'pytoml', 'pytz', 'queue', 'requests', 'rubicon', 'six', 'stopit', 'urllib3', 'webencodings', 'wsgiref']
SITE_PACKAGES_FOLDER = ""
if __platform__ is iOS:
SITE_PACKAGES_FOLDER = os.path.expanduser("~/Documents/modules")
@@ -869,8 +869,8 @@ class PackageRepository(object):
print('Dependency already installed: {}'.format(pkg_name))
continue
- if pkg_name in PYTHONISTA_BUNDLED_MODULES:
- print('Dependency available in Pythonista bundle : {}'.format(pkg_name))
+ if pkg_name in BUNDLED_MODULES:
+ print('Dependency available in Pyto bundle : {}'.format(pkg_name))
continue
print('Installing dependency: {}'.format('{}{}'.format(pkg_name, ver_spec if ver_spec else '')))
