Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

virtualenvwrapper

install with:

Code Block
languagebash
pip install virtualenvwrapper

Use virtualenvwrapper-win on a windows system (https://pypi.python.org/pypi/virtualenvwrapper-win). Install with:

Code Block
languagebash
pip install virtualenvwrapper-win

Create Python package

The python scaffold package (https://pypi.python.org/pypi/Scaffold/0.1.3) helps to create a proper directory structure for your package, following the structure as explained in http://www.scotttorborg.com/python-packaging/minimal.html

...

You can view the scaffold package on PyPi here: http://pypi.python.org/pypi/Scaffold/0.1.3

To install, simply use pip install use

Code Block
languagebash
pip install scaffold

Running Scaffold

You can run scaffold as a python module:

Code Block
languagebash
python -m scaffold -p "projectname" [-d {base directory}]

By default, the project is created as a child of the current working directory. The optional argument

Code Block
languagebash
-d {base directory}

allows to create the project somewhere else.

...

Now we can install the package locally (for use on our system), with:

Code Block
languagebash
python setup.py install

For packages under development, we can also install the package with a symlink, so that changes to the source files will be immediately available to other users of the package on our system:

Code Block
languagebash
python setup.py develop