Skip to content

Commit

Permalink
Fix PyPy with pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
Baekalfen committed Jan 17, 2024
1 parent 4f92c26 commit edb4586
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@
import sys
from multiprocessing import cpu_count

import numpy as np
from Cython.Build import cythonize
from Cython.Distutils import build_ext as _build_ext
from setuptools import Extension, setup

CYTHON = platform.python_implementation() == "CPython"
ROOT_DIR = "pyboy"

if not CYTHON:
setup()
exit(0)

import numpy as np
from Cython.Build import cythonize
from Cython.Compiler import DebugFlags, Errors
from Cython.Distutils import build_ext as _build_ext


def patched_error(position, message):
Expand Down

0 comments on commit edb4586

Please sign in to comment.