diff options
| author | Bernát Gábor <bgabor8@bloomberg.net> | 2020-01-18 17:07:49 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-18 17:07:49 +0000 |
| commit | 8d6af57d76edcf425beab6d53d4c14f1e49f7ca5 (patch) | |
| tree | de400611862464320c6a45a932e27c2bac0c63ea /src/virtualenv/activation/python | |
| parent | 8f4128879b26921af2ec0f0f3f690ed2324bfb04 (diff) | |
| download | virtualenv-8d6af57d76edcf425beab6d53d4c14f1e49f7ca5.tar.gz | |
CentOs and Fedora support (#1500)
* CentOs support
Instead of hard coding patterns and guessing let's ask the host python
via the sysconfig.
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* add isolated test
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* fixes for Fedora
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
Diffstat (limited to 'src/virtualenv/activation/python')
| -rw-r--r-- | src/virtualenv/activation/python/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virtualenv/activation/python/__init__.py b/src/virtualenv/activation/python/__init__.py index b06af78..8d7e80e 100644 --- a/src/virtualenv/activation/python/__init__.py +++ b/src/virtualenv/activation/python/__init__.py @@ -14,6 +14,6 @@ class PythonActivator(ViaTemplateActivator): def replacements(self, creator, dest_folder): replacements = super(PythonActivator, self).replacements(creator, dest_folder) - site_dump = json.dumps([os.path.relpath(str(i), str(dest_folder)) for i in creator.site_packages], indent=2) + site_dump = json.dumps(list({os.path.relpath(str(i), str(dest_folder)) for i in creator.libs}), indent=2) replacements.update({"__SITE_PACKAGES__": site_dump}) return replacements |
