From 01d49d78ce2e136caa2ba3853c6f8e4cbf14d453 Mon Sep 17 00:00:00 2001 From: Samuel Loury Date: Sat, 24 Mar 2018 22:31:45 +0100 Subject: [PATCH] Remove the failsafe --- setup.py | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/setup.py b/setup.py index af29dde..8d08855 100644 --- a/setup.py +++ b/setup.py @@ -9,14 +9,14 @@ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - 1. Redistributions of source code must retain the above copyright notice, + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - 3. Neither the name of Nir Aides nor the names of other contributors may + 3. Neither the name of Nir Aides nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission. @@ -37,28 +37,11 @@ import sys from distutils.core import setup from distutils.extension import Extension - -try: - from Cython.Distutils import build_ext -except ImportError: - sys.stderr.write("""=========================================================== -rfoo depends on Cython - http://cython.org/ - -To install Cython follow the simple instructions at: -http://docs.cython.org/src/quickstart/install.html - -Basically, you need gcc installed on your system: - sudo apt-get install build-essential - -and then setup the latest source version of Cython with: - sudo python setup.py install -===========================================================\n""") - sys.exit(1) - +from distutils.command.build_ext import build_ext if 'bdist_egg' in sys.argv: sys.stderr.write("""=========================================================== -rfoo can not be installed by easy_install due to conflict +rfoo can not be installed by easy_install due to conflict between easy_install and Cython: http://mail.python.org/pipermail/distutils-sig/2007-September/008205.html @@ -84,6 +67,3 @@ setup( cmdclass = {'build_ext': build_ext}, ext_modules = ext_modules ) - - -