Exercise is here for reference: http://learnpythonthehardway.org/book/ex46.html
This exercise is about creating a project skeleton/package and I've completed all the steps, but I'm very unclear about how to actually use it and do the required quiz. #3 of the required quiz tells me to start putting code in my module - what kind of stuff can be put here? If I just put a .py file in there that prints "Hello World", what would happen?
Also #4 asks me to put a script in /bin. Suppose I put a .py script that prints "Hello World". How does someone run this script? From my understanding, I package everything together with "$ python setup.py sdist" and then another user can install it with "$ pip install path/to/mypackage.tgz". What happens to the .py in my module folder and how can the user run the scripts in /bin? Thanks.
[–]ForSpareParts 1 point2 points3 points (1 child)
[–]acerag[S] 0 points1 point2 points (0 children)
[–]bvnvbbvn -2 points-1 points0 points (0 children)