formatting
This commit is contained in:
17
README.md
17
README.md
@@ -128,9 +128,10 @@ does not recommend this lib anymore.
|
|||||||
setuptools were created and It offers more options, after making setuptools implemented in python installation It becomes standart.
|
setuptools were created and It offers more options, after making setuptools implemented in python installation It becomes standart.
|
||||||
Now we will take a look for some python setup.py use cases.
|
Now we will take a look for some python setup.py use cases.
|
||||||
|
|
||||||
* python setup.py build
|
- python setup.py build
|
||||||
Creates a build folder (which is necessary for installation) - but not actually install anything. We can think about that as some 'preparation for install'.
|
Creates a build folder (which is necessary for installation) - but not actually install anything. We can think about that as some 'preparation for install'.
|
||||||
tree:
|
tree:
|
||||||
|
|
||||||
├── build
|
├── build
|
||||||
│ └── lib
|
│ └── lib
|
||||||
│ └── server23
|
│ └── server23
|
||||||
@@ -145,9 +146,10 @@ tree:
|
|||||||
├── __init__.py
|
├── __init__.py
|
||||||
└── server23.py
|
└── server23.py
|
||||||
|
|
||||||
* python setup.py install
|
- python setup.py install
|
||||||
Installation is 2 step action. First step = build. Second step = final local installation.
|
Installation is 2 step action. First step = build. Second step = final local installation.
|
||||||
tree:
|
tree:
|
||||||
|
|
||||||
├── DEBIAN
|
├── DEBIAN
|
||||||
│ └── control
|
│ └── control
|
||||||
├── build
|
├── build
|
||||||
@@ -175,9 +177,10 @@ tree:
|
|||||||
├── copyright
|
├── copyright
|
||||||
└── changelog.gz
|
└── changelog.gz
|
||||||
|
|
||||||
* python setup.py sdist
|
- python setup.py sdist
|
||||||
It will create source distribution - and zip it, so you can ship it :)
|
It will create source distribution - and zip it, so you can ship it :)
|
||||||
tree:
|
tree:
|
||||||
|
|
||||||
├── DEBIAN
|
├── DEBIAN
|
||||||
│ └── control
|
│ └── control
|
||||||
├── dist
|
├── dist
|
||||||
@@ -196,19 +199,19 @@ tree:
|
|||||||
├── SOURCES.txt
|
├── SOURCES.txt
|
||||||
└── top_level.txt
|
└── top_level.txt
|
||||||
|
|
||||||
* python setup.py develop
|
- python setup.py develop
|
||||||
Executes build, installation but creates a simlink, so every changes made are immediately visible, without need of reinstall.
|
Executes build, installation but creates a simlink, so every changes made are immediately visible, without need of reinstall.
|
||||||
|
|
||||||
* python setup.py bdist_rpm
|
- python setup.py bdist_rpm
|
||||||
Creates .rpm package, which can be installed.
|
Creates .rpm package, which can be installed.
|
||||||
|
|
||||||
* python setup.py bdist_wininst
|
- python setup.py bdist_wininst
|
||||||
Creates an executable installer for Windows.
|
Creates an executable installer for Windows.
|
||||||
|
|
||||||
NOTE: bdist_rpm & bdist_wininst does not work on Debian based distrubutions! You have to do that on suitable OS.
|
NOTE: bdist_rpm & bdist_wininst does not work on Debian based distrubutions! You have to do that on suitable OS.
|
||||||
|
|
||||||
## Structure of setup.py
|
## Structure of setup.py
|
||||||
- from PyPA (Python Packaging Authority), https://www.pypa.io/en/latest/
|
from PyPA (Python Packaging Authority), https://www.pypa.io/en/latest/
|
||||||
|
|
||||||
"""A setuptools based setup module.
|
"""A setuptools based setup module.
|
||||||
See:
|
See:
|
||||||
|
|||||||
Reference in New Issue
Block a user