Updated project type library logic & fixed tests #144

This commit is contained in:
2022-12-18 14:27:41 +01:00
parent d5e89d6e2a
commit 46fa49a102
18 changed files with 161 additions and 132 deletions

View File

@@ -53,7 +53,11 @@
"*/logs",
"*/tests"
],
"PackageData": {},
"PackageData": {
"cpl_core": [
".cpl/*.py"
]
},
"ProjectReferences": []
}
}

View File

@@ -33,7 +33,7 @@ class Pip:
return
cls._executable = executable
if not os.path.islink(cls._executable):
if not os.path.islink(cls._executable) or not os.path.isfile(executable):
return
path = os.path.dirname(os.path.dirname(cls._executable))
@@ -119,6 +119,7 @@ class Pip:
if source is not None:
pip_args.append(f'--extra-index-url')
pip_args.append(source)
subprocess.run(pip_args, stdout=stdout, stderr=stderr, env=cls._env)
@classmethod