I have a git repository I've cloned and I've run the setup.py that installs the package. I have enough experience that I know how to insert ipdb.set_trace() into lines of code where I want to start debugging. I have not yet though understood how to run the cloned code in such a way that it's not being run form the binaries created by the setup.py and as I understand it, then compiled and untouchable.
Can someone illuminate as to how to execute a python package in this way?
Just the general course of actions.
I'm on Ubuntu 13.10 and inside virtualenv
virtualenv salt-test --system-site-packages
We need --system-site-packages
due to some bugs after installation of M2Crypto inside virtualenv
Prerequsites:
apt-get install swig libssl-dev
git clone https://github.com/saltstack/salt.git
cd salt
pip install -r requirements.txt
export PYTHONPATH=$PYTHONPATH:/path/to/salt
./scripts/salt-master -l debug
You'll see a lot of output and it would hint you what you need to create to run master properly.
NB: After installation I have to activated virtualenv under root to start master
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.