Python: Difference between revisions

Using nix-ld: Add system-wide packages
DHCP (talk | contribs)
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="bash">
</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="bash">
</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