GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - maet3608/minimal-setup-py: An example for a minimal setup.py

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
setup.py
setup.py
 
 

Repository files navigation

A minimal setup.py

It is easy to start with Python scripting but soon the number of files and their dependecies start to grow. An all-to-common solution to fix the then occuring errors regarding functions not found or modules that cannot be imported is to modify PYTHONPATH. Don't do it!

setup.py avoids all the problems that come with tweaking Python's search path and will give you packages that can easily be installed on other machines. Unfortunately the documentation on how to create setup.py is rather complex and intimidating. A simple, minimal example is lacking.

Well here it is! Put it in the root folder of your project folder, adjust the properties such as author's name, install requirements, make sure you have __init.py__ files for all packages and you are good to go.

Use one of the following commands for installation:

python setup.py install

or

python setup.py develop

p.s. A nice introdution on how to write setup.py can be found here.

See python-packaging for a great tutorial and example of a complete Python package.

About

An example for a minimal setup.py

Topics

pythonsetup

Resources

Readme
Activity

Stars

66 stars

Watchers

0 watching

Forks

22 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.