venv and packages with entry points

c.buhtz at posteo.jp c.buhtz at posteo.jp
Mon Sep 5 03:33:13 EDT 2022


Hello,

I try to get it onto my head how virtual environments (via venv) works 
when I have packages with "entry points".

I can define such entry points in the setup.cfg like this (full example 
[1]):

[options.entry_points]
console_scripts =
     hyperorg = hyperorg.__main__:main

When I install such a package via pip the result is a shell script in 
/usr/bin/...

What happens when I install such a package with an entry point via "pip 
install ." when an virtual environment is activated?

Kind
Christian

[1] -- 
<https://codeberg.org/buhtz/hyperorg/src/branch/develop/setup.cfg>


More information about the Python-list mailing list