We use cookies to make your experience better. To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies. Learn more.
[metadata] name = my_package version = 0.1.0 author = Your Name [options] packages = find: install_requires = requests numpy
Here’s a useful, general-purpose guide for understanding and working with a (e.g., setup.py , setup.cfg , setup.sh , or an installer configuration file). setup -file-
pip install . For non-Python projects:
#!/bin/bash # setup.sh - environment setup echo "Setting up environment..." python3 -m venv venv source venv/bin/activate pip install -r requirements.txt echo "Setup complete." [metadata] name = my_package version = 0
Then use:
Run:
[options.entry_points] console_scripts = mycmd = my_package.cli:main setup -file-