Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Commit feefc22

Browse files
author
Ulrich Soeffing
committed
Install mmcore with dependency flags since mmcache is a dependency of mmcore now
1 parent 344190f commit feefc22

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

aws_lambda/aws_lambda.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,13 +473,15 @@ def _filter_blacklist(package):
473473

474474
filtered_packages = filter(_filter_blacklist, packages)
475475

476+
pip_major_version = [int(v) for v in pip.__version__.split('.')][0]
477+
print('Pip major version: %s' % pip_major_version)
478+
476479
for package in filtered_packages:
477480
if package.startswith('-e '):
478481
package = package.replace('-e ', '')
479482

480483
print('Installing {package}'.format(package=package))
481484

482-
pip_major_version = [int(v) for v in pip.__version__.split('.')][0]
483485
if pip_major_version >= 10:
484486
from pip._internal import main
485487
main(['install', package, '-t', path, '--ignore-installed'])
@@ -489,6 +491,12 @@ def _filter_blacklist(package):
489491
print('Installing mmdata with --process-dependency-links flag!')
490492
pip.main(['install', package, '-t', path,
491493
'--process-dependency-links'])
494+
495+
if 'mmcore.git' in package:
496+
print('Installing mmcore with --process-dependency-links flag!')
497+
pip.main(['install', package, '-t', path,
498+
'--process-dependency-links'])
499+
492500
else:
493501
pip.main(['install', package, '-t',
494502
path, '--ignore-installed'])
@@ -584,6 +592,7 @@ def pip_install_to_target(path, requirements=None, local_package=None):
584592
local_package = [local_package]
585593
for l_package in local_package:
586594
packages.append(l_package)
595+
587596
_install_packages(path, packages)
588597

589598

0 commit comments

Comments
 (0)