Skip to content

Commit

Permalink
Added setup file
Browse files Browse the repository at this point in the history
  • Loading branch information
WaterNewt committed Mar 22, 2024
1 parent a72d2ff commit 7b3bc89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ A raycast simulation written in PyGame, Python

## Setup
1. Install the required libraries: `pip3 install -r requirements.txt`
2. Cythonize the class files: `cythonize -i ray.pyx && cythonize -i walls.pyx`
2. Run setup file to cythonize class files: `python3 setup.py build_ext --inplace`
3. Run `main.py`: `python3 main.py`

## Screenshots
Expand Down
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from distutils.core import setup
from Cython.Build import cythonize

setup(
ext_modules=cythonize(["walls.pyx", "ray.pyx"])
)

0 comments on commit 7b3bc89

Please sign in to comment.