Python: Difference between revisions
TobiasBora (talk | contribs) →Using nix-ld: Add system-wide packages |
m →Using nix-ld: use <syntaxhighlight lang=console> for shell commands |
||
| Line 228: | Line 228: | ||
]; | ]; | ||
} | } | ||
</syntaxhighlight>Then, you can use your own pythonld in a specific virtual env like:<syntaxhighlight lang=" | </syntaxhighlight>Then, you can use your own pythonld in a specific virtual env like:<syntaxhighlight lang="console"> | ||
$ pythonld -m venv myvenv | $ pythonld -m venv myvenv | ||
$ source myvenv/bin/activate | $ source myvenv/bin/activate | ||
| Line 255: | Line 255: | ||
]; | ]; | ||
} | } | ||
</syntaxhighlight>And then use it like:<syntaxhighlight lang=" | </syntaxhighlight>And then use it like:<syntaxhighlight lang="console"> | ||
$ pythonld -m venv --system-site-packages myvenv | $ pythonld -m venv --system-site-packages myvenv | ||
$ source myvenv/bin/activate | $ source myvenv/bin/activate | ||