Mercurial > touhou
diff setup.py @ 795:2d60a14f4816 default tip
python: Rewrite the main entrypoint in Rust
This lets us progressively replace Python modules with Rust ones.
Currently missing features include:
- Saving replays
- Networking code for cooperative mode
- Reading a configuration file for options
- Maybe more.
But the base game is working, so yay!
| author | Link Mauve <linkmauve@linkmauve.fr> |
|---|---|
| date | Tue, 02 Jun 2026 19:06:16 +0200 |
| parents | 7e940ebeb5fd |
| children |
line wrap: on
line diff
--- a/setup.py Tue Jun 02 16:39:21 2026 +0200 +++ b/setup.py Tue Jun 02 19:06:16 2026 +0200 @@ -166,8 +166,7 @@ if sys.platform == 'win32': nthreads = None # It seems Windows can’t compile in parallel. base = 'Win32GUI' - extra = {'options': {'build_exe': {'includes': [mod.name for mod in ext_modules] + py_modules}}, - 'executables': [Executable(script='scripts/pytouhou', base=base)]} + extra = {'options': {'build_exe': {'includes': [mod.name for mod in ext_modules] + py_modules}}} # Create a link to the data files (for packaging purposes) @@ -193,7 +192,7 @@ 'MAX_ELEMENTS': 640 * 4 * 3, 'MAX_SOUNDS': 26, 'USE_OPENGL': use_opengl}), - scripts=['scripts/pytouhou'] + (['scripts/anmviewer'] if anmviewer else []), + scripts=['scripts/anmviewer'] if anmviewer else [], packages=['pytouhou'], **extra)
