diff options
author | Éric Araujo <merwok@netwok.org> | 2011-06-07 23:11:36 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-06-07 23:11:36 (GMT) |
commit | b805c47138d23c2d6cbaffde81a4b7d9afe44e4b (patch) | |
tree | ac3927043cbf49680750b99131308a0682cf0667 /Doc/distutils/introduction.rst | |
parent | b8f2ad03805048f43723019aecbcf181fbf01549 (diff) | |
download | cpython-b805c47138d23c2d6cbaffde81a4b7d9afe44e4b.zip cpython-b805c47138d23c2d6cbaffde81a4b7d9afe44e4b.tar.gz cpython-b805c47138d23c2d6cbaffde81a4b7d9afe44e4b.tar.bz2 |
Add examples that work on Windows to distutils docs (#1626300)
Diffstat (limited to 'Doc/distutils/introduction.rst')
-rw-r--r-- | Doc/distutils/introduction.rst | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Doc/distutils/introduction.rst b/Doc/distutils/introduction.rst index 8dc604d..57d34a4 100644 --- a/Doc/distutils/introduction.rst +++ b/Doc/distutils/introduction.rst @@ -79,11 +79,17 @@ Some observations: for an example) To create a source distribution for this module, you would create a setup -script, :file:`setup.py`, containing the above code, and run:: +script, :file:`setup.py`, containing the above code, and run this command from a +terminal:: python setup.py sdist -which will create an archive file (e.g., tarball on Unix, ZIP file on Windows) +For Windows, open a command prompt windows ("DOS box") and change the command +to:: + + setup.py sdist + +:command:`sdist` will create an archive file (e.g., tarball on Unix, ZIP file on Windows) containing your setup script :file:`setup.py`, and your module :file:`foo.py`. The archive file will be named :file:`foo-1.0.tar.gz` (or :file:`.zip`), and will unpack into a directory :file:`foo-1.0`. |