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:
|
||||
|
||||
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
|
||||
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'.
|
||||
tree:
|
||||
|
||||
├── build
|
||||
│ └── lib
|
||||
│ └── server23
|
||||
│ ├── __init__.py
|
||||
│ └── server23.py
|
||||
├── DEBIAN
|
||||
│ └── control
|
||||
├── install.sh
|
||||
├── setup.py
|
||||
└── src
|
||||
└── server23
|
||||
├── __init__.py
|
||||
└── server23.py
|
||||
├── build
|
||||
│ └── lib
|
||||
│ └── server23
|
||||
│ ├── __init__.py
|
||||
│ └── server23.py
|
||||
├── DEBIAN
|
||||
│ └── control
|
||||
├── install.sh
|
||||
├── setup.py
|
||||
└── src
|
||||
└── server23
|
||||
├── __init__.py
|
||||
└── server23.py
|
||||
|
||||
- python setup.py install
|
||||
Installation is 2 step action. First step = build. Second step = final local installation.
|
||||
tree:
|
||||
|
||||
├── DEBIAN
|
||||
│ └── control
|
||||
├── build
|
||||
│ └── lib
|
||||
│ └── server23
|
||||
│ ├── __init__.py
|
||||
│ └── server23.py
|
||||
└── usr
|
||||
├── bin
|
||||
│ └── server22
|
||||
├── lib
|
||||
│ └── python3
|
||||
│ └── dist-packages
|
||||
│ ├── server22
|
||||
│ │ ├── __init__.py
|
||||
│ │ └── server22.py
|
||||
│ └── server22-2.2.2.egg-info
|
||||
│ ├── dependency_links.txt
|
||||
│ ├── entry_points.txt
|
||||
│ ├── PKG-INFO
|
||||
│ └── top_level.txt
|
||||
└── share
|
||||
└── doc
|
||||
└── server22
|
||||
├── copyright
|
||||
└── changelog.gz
|
||||
├── DEBIAN
|
||||
│ └── control
|
||||
├── build
|
||||
│ └── lib
|
||||
│ └── server23
|
||||
│ ├── __init__.py
|
||||
│ └── server23.py
|
||||
└── usr
|
||||
├── bin
|
||||
│ └── server22
|
||||
├── lib
|
||||
│ └── python3
|
||||
│ └── dist-packages
|
||||
│ ├── server22
|
||||
│ │ ├── __init__.py
|
||||
│ │ └── server22.py
|
||||
│ └── server22-2.2.2.egg-info
|
||||
│ ├── dependency_links.txt
|
||||
│ ├── entry_points.txt
|
||||
│ ├── PKG-INFO
|
||||
│ └── top_level.txt
|
||||
└── share
|
||||
└── doc
|
||||
└── server22
|
||||
├── copyright
|
||||
└── changelog.gz
|
||||
|
||||
- python setup.py sdist
|
||||
It will create source distribution - and zip it, so you can ship it :)
|
||||
tree:
|
||||
|
||||
├── DEBIAN
|
||||
│ └── control
|
||||
├── dist
|
||||
│ └── server24-2.2.2.tar.gz
|
||||
├── install.sh
|
||||
├── m.md
|
||||
├── setup.py
|
||||
└── src
|
||||
├── server24
|
||||
│ ├── __init__.py
|
||||
│ └── server24.py
|
||||
└── server24.egg-info
|
||||
├── dependency_links.txt
|
||||
├── entry_points.txt
|
||||
├── PKG-INFO
|
||||
├── SOURCES.txt
|
||||
└── top_level.txt
|
||||
├── DEBIAN
|
||||
│ └── control
|
||||
├── dist
|
||||
│ └── server24-2.2.2.tar.gz
|
||||
├── install.sh
|
||||
├── m.md
|
||||
├── setup.py
|
||||
└── src
|
||||
├── server24
|
||||
│ ├── __init__.py
|
||||
│ └── server24.py
|
||||
└── server24.egg-info
|
||||
├── dependency_links.txt
|
||||
├── entry_points.txt
|
||||
├── PKG-INFO
|
||||
├── SOURCES.txt
|
||||
└── top_level.txt
|
||||
|
||||
- python setup.py develop
|
||||
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