https://github.com/project-undefined/cpython-compile-windows-base
Quickly set up a cpython project that compiles pyx files to exe files
https://github.com/project-undefined/cpython-compile-windows-base
cython python python-to-exe pyx windows
Last synced: 3 months ago
JSON representation
Quickly set up a cpython project that compiles pyx files to exe files
- Host: GitHub
- URL: https://github.com/project-undefined/cpython-compile-windows-base
- Owner: project-undefined
- Created: 2022-05-23T02:18:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-23T02:36:35.000Z (almost 4 years ago)
- Last Synced: 2025-01-18T02:14:08.510Z (about 1 year ago)
- Topics: cython, python, python-to-exe, pyx, windows
- Language: Cython
- Homepage:
- Size: 1000 Bytes
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cpython-compile-windows-base
Quickly set up a cpython project that compiles pyx files to exe files
# Instructions
Install cython via pip first
Make sure you have MINGW for c installed
NOTICE: in this projects the python installation is located at "C:/Python39" (you can change the location in the compile.sh file)
BEFORE DOING ANYTHING ADD THIS TO YOUR PYCONFIG.h FILE IN ```/Python39/pyconfig.h```
(search for the comment ```/* Compiler specific defines */``` and put this below it)
```
#ifdef __MINGW32__
#ifdef _WIN64
#define MS_WIN64
#endif
#endif
#ifdef __MINGW64__
#ifdef _WIN64
#define MS_WIN64
#endif
#endif
```
All you have to do now is run ```compile.sh```!
(It will compile ```lib.pyx``` to ```lib.c```, ```lib.h```, etc. Then it will use gcc to compile ```lib.c``` to ```lib.exe```)