Skip to content

Commit

Permalink
Check for compyte presence before running setup
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Sep 9, 2017
1 parent 2ef879d commit 65d3c32
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
__copyright__ = """
Copyright (C) 2009-15 Andreas Kloeckner
Copyright (C) 2013 Marko Bencun
Copyright (C) 2013 Marko Bencun
"""

__license__ = """
Expand All @@ -31,6 +30,7 @@


import sys
from os.path import exists


def get_config_schema():
Expand Down Expand Up @@ -169,6 +169,18 @@ def main():
from aksetup_helper import count_down_delay
count_down_delay(delay=5)

if not exists("pyopencl/compyte/dtypes.py"):
print(75 * "-")
print("You are missing important files from the pyopencl distribution.")
print(75 * "-")
print("You may have downloaded a zip or tar file from Github.")
print("Those do not work, and I am unable to prevent Github from showing")
print("them. Delete that file, and get an actual release file from the")
print("Python package index:")
print()
print("https://pypi.python.org/pypi/pyopencl")
sys.exit(1)

# {{{ write cffi build script

with open("cffi_build.py.in", "rt") as f:
Expand Down

0 comments on commit 65d3c32

Please sign in to comment.