Skip to content

very simple example project showing python package organization, setup.py and entry-points

Notifications You must be signed in to change notification settings

4ker/pypi-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-world-python-package

Install with either:

git clone https://github.com/gdamjan/hello-world-python-package.git
cd hello-world-python-package
pip install --user .

or directly

pip install --user git+https://github.com/gdamjan/hello-world-python-package.git#egg=cool_lib

PLEASE

  • don't try to play games with sys.path - that's surely wrong, and ends in tears
  • the same is true for PYTHONPATH too
  • use PEP-370 instead of virtualenv, it's a standard feature and not a hack around the python executable. Quickest Howto about pep-370, use pip install --user, and optionally set the PYTHONUSERBASE environment variable to choose another directory than ~/.local/.

Thanks!

Other resources:

About

very simple example project showing python package organization, setup.py and entry-points

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%