Python solutions to Project Euler problems
This also serves as an example of how to set up a Python package using distribute
.
I used this helpful Python packaging tutorial as a guide, and also I made use of this guide to repository structure in order to separate the tests from the main package.
I recommend using nose
for testing.
$ python setup.py nosetests
$ python setup.py install
Answer scripts are installed where distribute
installs them (for me it is /usr/local/share/python
). If you have the script directory in your PATH
, you should be able to run
$ project_euler_answer1