# PylonsWikiNG / distributing.rst

Once your application works properly, you can create a "tarball" from it by using the setup.py sdist command. The following commands assume your current working directory is the tutorial package we've created and that the parent directory of the tutorial package is a virtualenv representing a :mod:repoze.bfg environment.

On UNIX:

\$ ../bin/python setup.py sdist


On Windows:

c:\bigfntut> ..\Scripts\python setup.py sdist


Warning

If your project files are not checked in to a version control repository (such as Subversion), the dist tarball will not contain all the files it needs to. In particular, it will not contain non-Python-source files (such as templates and static files). To ensure that these are included, check your files into a version control repository before running setup.py sdist.

The output of such a command will be something like:

running sdist
# ... more output ...
creating dist
tar -cf dist/tutorial-0.1.tar tutorial-0.1
gzip -f9 dist/tutorial-0.1.tar
removing 'tutorial-0.1' (and everything under it)


Note that this command creates a tarball in the "dist" subdirectory named tutorial-0.1.tar.gz. You can send this file to your friends to show them your cool new application. They should be able to install it by pointing the easy_install command directly at it. Or you can upload it to PyPI and share it with the rest of the world, where it can be downloaded via easy_install remotely like any other package people download from PyPI.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.