|
| 1 | +from enum import Enum |
| 2 | + |
| 3 | + |
| 4 | +class TargetPython(Enum): |
| 5 | + python2 = 0 |
| 6 | + python3crystax = 1 |
| 7 | + |
| 8 | + |
| 9 | +# recipes that currently break the build |
| 10 | +# a recipe could be broken for a target Python and not for the other, |
| 11 | +# hence we're maintaining one list per Python target |
| 12 | +BROKEN_RECIPES_PYTHON2 = set([]) |
| 13 | +BROKEN_RECIPES_PYTHON3_CRYSTAX = set([ |
| 14 | + # not yet python3crystax compatible |
| 15 | + 'apsw', 'atom', 'boost', 'brokenrecipe', 'cdecimal', 'cherrypy', |
| 16 | + 'coverage', 'dateutil', 'enaml', 'ethash', 'kiwisolver', 'libgeos', |
| 17 | + 'libnacl', 'libsodium', 'libtorrent', 'libtribler', 'libzbar', 'libzmq', |
| 18 | + 'm2crypto', 'mysqldb', 'ndghttpsclient', 'pil', 'pycrypto', 'pyethereum', |
| 19 | + 'pygame', 'pyleveldb', 'pyproj', 'pyzmq', 'regex', 'shapely', |
| 20 | + 'simple-crypt', 'twsisted', 'vispy', 'websocket-client', 'zbar', |
| 21 | + 'zeroconf', 'zope', |
| 22 | + # https://github.com/kivy/python-for-android/issues/550 |
| 23 | + 'audiostream', |
| 24 | + # enum34 is not compatible with Python 3.6 standard library |
| 25 | + # https://stackoverflow.com/a/45716067/185510 |
| 26 | + 'enum34', |
| 27 | + # https://github.com/kivy/python-for-android/issues/1398 |
| 28 | + 'ifaddrs', |
| 29 | + # https://github.com/kivy/python-for-android/issues/1399 |
| 30 | + 'libglob', |
| 31 | + # cannot find -lcrystax |
| 32 | + 'cffi', 'pycryptodome', 'pymuk', 'secp256k1', |
| 33 | + # https://github.com/kivy/python-for-android/issues/1404 |
| 34 | + 'cryptography', |
| 35 | + # https://github.com/kivy/python-for-android/issues/1294 |
| 36 | + 'ffmpeg', 'ffpyplayer', |
| 37 | + # https://github.com/kivy/python-for-android/pull/1307 ? |
| 38 | + 'gevent', |
| 39 | + 'icu', |
| 40 | + # https://github.com/kivy/python-for-android/issues/1354 |
| 41 | + 'kivent_core', 'kivent_cymunk', 'kivent_particles', 'kivent_polygen', |
| 42 | + 'kivy', |
| 43 | + # https://github.com/kivy/python-for-android/issues/1405 |
| 44 | + 'libpq', 'psycopg2', |
| 45 | + 'netifaces', |
| 46 | + # https://github.com/kivy/python-for-android/issues/1315 ? |
| 47 | + 'opencv', |
| 48 | + 'protobuf_cpp', |
| 49 | + # most likely some setup in the Docker container, because it works in host |
| 50 | + 'pyjnius', 'pyopenal', |
| 51 | + # SyntaxError: invalid syntax (Python2) |
| 52 | + 'storm', |
| 53 | + 'vlc', |
| 54 | +]) |
| 55 | +BROKEN_RECIPES = { |
| 56 | + TargetPython.python2: BROKEN_RECIPES_PYTHON2, |
| 57 | + TargetPython.python3crystax: BROKEN_RECIPES_PYTHON3_CRYSTAX, |
| 58 | +} |
| 59 | +# recipes that were already built will be skipped |
| 60 | +CORE_RECIPES = set([ |
| 61 | + 'pyjnius', 'kivy', 'openssl', 'requests', 'sqlite3', 'setuptools', |
| 62 | + 'numpy', 'android', 'python2', |
| 63 | +]) |
0 commit comments