[MO] move importlib-metadata into setup.py (#10319)
* handle 'and' marker in requirements
* Revert "handle 'and' marker in requirements"
This reverts commit 952bb949ca.
* moved importlib-metadata from requirements.txt into setup.py
This commit is contained in:
1 parent
f1557c06de
commit
121d59aa80
2 files changed
+4
-5
No files matched your search
@@ -11,4 +11,3 @@ urllib3>=1.26.4
|
||||
requests>=2.25.1
|
||||
fastjsonschema~=2.15.1
|
||||
openvino-telemetry>=2022.1.0
|
||||
importlib-metadata; python_version < "3.8" and sys_platform == "win32"
|
||||
+4
-4
@@ -42,16 +42,16 @@ py_modules.append(prefix.replace('/', '.') + '__main__')
|
||||
# Minimal set of dependencies
|
||||
deps_whitelist = ['networkx', 'defusedxml', 'numpy', 'openvino-telemetry']
|
||||
|
||||
# for py37 and less on Windows need importlib-metadata in order to use entry_point *.exe files
|
||||
if sys.platform == 'win32' and sys.version_info[1] < 8:
|
||||
deps_whitelist.append('importlib-metadata')
|
||||
|
||||
deps = []
|
||||
with open('requirements.txt', 'rt') as req_file:
|
||||
for line in req_file.read().split('\n'):
|
||||
if line.startswith(tuple(deps_whitelist)):
|
||||
deps.append(line)
|
||||
|
||||
# for py37 and less on Windows need importlib-metadata in order to use entry_point *.exe files
|
||||
if sys.platform == 'win32' and sys.version_info[1] < 8:
|
||||
deps.append('importlib-metadata')
|
||||
|
||||
|
||||
class InstallCmd(install):
|
||||
def run(self):
|
||||
|
||||
Reference in new issue
Block a user