This post is the guide for you to setup your machine for the NUS orbital 2014 mission control #8 tutorial, it’s better that you have finished your environment setup before coming to the mission control, because downloading the components may need quite some time and the network may not be very good during mission control session. Wish by after reading the post, you can setup your environment and be prepared for the tutorial. :D
NOTE: to windows users, I will try to help you during the mission control if you have any trouble during the setup.
Actually this should not be listed in this help guide, because if you still don’t know about git by now, I am very worried about what you will be delivering as your final application. :(
GAE Python SDK (Version 1.9.6)
This should be quite easy for you guys, as most of you are using GAE python SDK everyday during orbital. I will just leave a small tip here for Linux users.
Remember to add your GAE python SDK location in your PATH environment.
# Put in your ~/.bashrc filePATH="$HOME/Development/google_appengine":$PATH
As I have been living without Windows for quite a few years, so forgive me if it just doesn’t work on the Windows machine. For Linux and Mac user, below is what you should do to install python virtualenv:
Read the documentation on installation, unless you want to mess up your global packages, please don’t install virtualenv globally. Just download the latest source from PyPi, extract to a folder where you usually put your development tools ~/Development/ for me.
Create an alias for your virtualenv.
# Put in your ~/.bashrc filealias virtualenv='path/to/virtualenv/virtualenv.py'
Create a new virtual python environment to test it and done.
For Windows users, I have found this, this and this for you as well. :)
3rd party libraries
This is the last step before the tutorial, here is what you need to do:
Clone the tutorial repository
git clone https://github.com/wgx731/2014-nus-orbital-mission-control-8.git
# ORgit clone email@example.com:wgx731/2014-nus-orbital-mission-control-8.git
Check out to step-x tag
git checkout -f step-x
Create and use a new virtualenv called env, actually you can give it any name, it’s just I have git ignored the env folder in this repository
Install the requirements.
pip install -r requirements.txt
Test it out
cd"test-examples/"# check pep8flake8 ./ -v
# single doc testpython doctest_example.py -v
# single unit testpython test_unitest_example.py -v
# nose test frameworknosetests --with-doctest -v
# pytest test frameworkpy.test --doctest-module -v
# behave python BDD frameworkbehave -v
You should see all the tests passed. And congratulations, you have successfully setup your environment. :P
Please comment or send email to me if you have any trouble or if you feel there is any error in the setup guide. Enjoy and start exploring if you want to.