Open
Description
Hi,
PyMOL deserves a package requirement installation engine for plugins. The following code snippets are the main mechanisms of package installation.
import subprocess
try:
import numpy as np
except ImportError:
subprocess.check_call(
[
"python",
"-m",
"pip",
"--disable-pip-version-check",
"install",
"numpy",
],
)
try:
from vina import Vina
import meeko
import openbabel
import plip
except ImportError:
subprocess.check_call(
[
"conda",
"install",
"-y",
"-c",
"conda-forge",
"numpy",
"meeko",
"vina",
"plip",
"numpy"
],
)
import shutil
import urllib.request
import tempfile
if not shutil.which('scrub.py'):
with tempfile.TemporaryDirectory() as tempdir:
zip = "%s/scrubber.zip" % tempdir
url = "https://github.com/forlilab/scrubber/archive/refs/heads/develop.zip"
urllib.request.urlretrieve(url, zip)
subprocess.check_call(
[
"python",
"-m",
"pip",
"--disable-pip-version-check",
"install",
zip
]
)
`'`
Metadata
Metadata
Assignees
Labels
No labels