A Nix environment for working through Mission Python
Mission Python is a book for learning Python through a series of game implementations. This prevides a Nix environment for the book’s exercises.
We recommend the following steps to make working in this repository as easy as possible.
This is sort-of a catch-all for keeping your environment up-to-date. It regenerates files, wires up the project’s Git configuration, ensures the shells have the right packages configured the right way, enables checks & formatters, etc.
If you already have it installed on your system or once you’ve run direnv allow, you can instead use project-manager switch.
This command ensures that any work you do within this repository happens within a consistent reproducible environment. That environment provides various debugging tools, etc. When you leave this directory, you will leave that environment behind, so it doesn’t impact anything else on your system.
If you don’t have direnv installed, you can instead manually run nix develop to get into the Mission Python environment.
Once you are in the environment, you should be able to cd source and then follow through the book as written.
If there is no “source” directory, then you can manually run unpackPhase to create it.
To run the IDLE editor, as the book recommends, you can do
idle &