formatting
This commit is contained in:
114
README.md
114
README.md
@@ -9,7 +9,7 @@ The goal is:
|
|||||||
Once you cloned this repo to your local machine, you should run following commands to make it works:
|
Once you cloned this repo to your local machine, you should run following commands to make it works:
|
||||||
|
|
||||||
If install.sh isn't executable run this:
|
If install.sh isn't executable run this:
|
||||||
- sudo chmod +x install.sh
|
sudo chmod +x install.sh
|
||||||
|
|
||||||
install.sh provides all necessarily commands (read more bellow) for python installation on deb system & creates
|
install.sh provides all necessarily commands (read more bellow) for python installation on deb system & creates
|
||||||
server22 dir and .deb file in /tmp
|
server22 dir and .deb file in /tmp
|
||||||
@@ -132,72 +132,72 @@ Now we will take a look for some python setup.py use cases.
|
|||||||
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
|
||||||
│ ├── __init__.py
|
│ ├── __init__.py
|
||||||
│ └── server23.py
|
│ └── server23.py
|
||||||
├── DEBIAN
|
├── DEBIAN
|
||||||
│ └── control
|
│ └── control
|
||||||
├── install.sh
|
├── install.sh
|
||||||
├── setup.py
|
├── setup.py
|
||||||
└── src
|
└── src
|
||||||
└── server23
|
└── server23
|
||||||
├── __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
|
||||||
│ └── lib
|
│ └── lib
|
||||||
│ └── server23
|
│ └── server23
|
||||||
│ ├── __init__.py
|
│ ├── __init__.py
|
||||||
│ └── server23.py
|
│ └── server23.py
|
||||||
└── usr
|
└── usr
|
||||||
├── bin
|
├── bin
|
||||||
│ └── server22
|
│ └── server22
|
||||||
├── lib
|
├── lib
|
||||||
│ └── python3
|
│ └── python3
|
||||||
│ └── dist-packages
|
│ └── dist-packages
|
||||||
│ ├── server22
|
│ ├── server22
|
||||||
│ │ ├── __init__.py
|
│ │ ├── __init__.py
|
||||||
│ │ └── server22.py
|
│ │ └── server22.py
|
||||||
│ └── server22-2.2.2.egg-info
|
│ └── server22-2.2.2.egg-info
|
||||||
│ ├── dependency_links.txt
|
│ ├── dependency_links.txt
|
||||||
│ ├── entry_points.txt
|
│ ├── entry_points.txt
|
||||||
│ ├── PKG-INFO
|
│ ├── PKG-INFO
|
||||||
│ └── top_level.txt
|
│ └── top_level.txt
|
||||||
└── share
|
└── share
|
||||||
└── doc
|
└── doc
|
||||||
└── server22
|
└── server22
|
||||||
├── 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
|
||||||
│ └── server24-2.2.2.tar.gz
|
│ └── server24-2.2.2.tar.gz
|
||||||
├── install.sh
|
├── install.sh
|
||||||
├── m.md
|
├── m.md
|
||||||
├── setup.py
|
├── setup.py
|
||||||
└── src
|
└── src
|
||||||
├── server24
|
├── server24
|
||||||
│ ├── __init__.py
|
│ ├── __init__.py
|
||||||
│ └── server24.py
|
│ └── server24.py
|
||||||
└── server24.egg-info
|
└── server24.egg-info
|
||||||
├── dependency_links.txt
|
├── dependency_links.txt
|
||||||
├── entry_points.txt
|
├── entry_points.txt
|
||||||
├── PKG-INFO
|
├── PKG-INFO
|
||||||
├── 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user