mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-22 21:38:11 -05:00
setup.py: Gracefully handle when Cython is not installed.
This commit is contained in:
16
r2/setup.py
16
r2/setup.py
@@ -26,11 +26,23 @@ use_setuptools()
|
||||
|
||||
from setuptools import find_packages
|
||||
from distutils.core import setup, Extension
|
||||
from Cython.Distutils import build_ext
|
||||
import os
|
||||
import fnmatch
|
||||
|
||||
commands = {"build_ext": build_ext}
|
||||
|
||||
commands = {}
|
||||
|
||||
|
||||
try:
|
||||
from Cython.Distutils import build_ext
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
commands.update({
|
||||
"build_ext": build_ext
|
||||
})
|
||||
|
||||
|
||||
try:
|
||||
from babel.messages import frontend as babel
|
||||
commands.update({
|
||||
|
||||
Reference in New Issue
Block a user