Roelant
Roelant

Reputation: 5119

Call your own pip-install package from command line

Not sure how to phrase this question, but what i want is similar to what azure-cli does:

How can you incorporate this in your own package?

Upvotes: 0

Views: 60

Answers (1)

Andrii Maletskyi
Andrii Maletskyi

Reputation: 2232

To achieve that you can add entrypoints argument to your setup.py call:

entrypoints={'console_scripts': ['az = my_package.some_module:main_func']}

See also the setuptools documentation.

Upvotes: 1

Related Questions