from pythonforandroid.recipe import CompiledComponentsPythonRecipe


class RegexRecipe(CompiledComponentsPythonRecipe):
    name = 'regex'
    version = '2017.07.28'
    url = 'https://pypi.python.org/packages/d1/23/5fa829706ee1d4452552eb32e0bfc1039553e01f50a8754c6f7152e85c1b/regex-{version}.tar.gz'

    depends = ['setuptools']


recipe = RegexRecipe()

from pythonforandroid.recipe import CompiledComponentsPythonRecipe


class RegexRecipe(CompiledComponentsPythonRecipe):
    name = 'regex'
    version = '2017.07.28'
    url = 'https://pypi.python.org/packages/d1/23/5fa829706ee1d4452552eb32e0bfc1039553e01f50a8754c6f7152e85c1b/regex-{version}.tar.gz'

    depends = ['setuptools']
    call_hostpython_via_targetpython = False


recipe = RegexRecipe()

Fix compilation for regex recipe
[recipes] Fix compilation for  regex recipe

The error was: build/other_builds/hostpython3/desktop/hostpython3/Include/Python.h:39:19: fatal error: crypt.h: No such file or directory

  from pythonforandroid.recipe import CompiledComponentsPythonRecipe
  
  
  class RegexRecipe(CompiledComponentsPythonRecipe):
      name = 'regex'
      version = '2017.07.28'
      url = 'https://pypi.python.org/packages/d1/23/5fa829706ee1d4452552eb32e0bfc1039553e01f50a8754c6f7152e85c1b/regex-{version}.tar.gz'
  
      depends = ['setuptools']
+     call_hostpython_via_targetpython = False
  
  
  recipe = RegexRecipe()
  
Fix compilation for regex recipe
## Code Before:
from pythonforandroid.recipe import CompiledComponentsPythonRecipe


class RegexRecipe(CompiledComponentsPythonRecipe):
    name = 'regex'
    version = '2017.07.28'
    url = 'https://pypi.python.org/packages/d1/23/5fa829706ee1d4452552eb32e0bfc1039553e01f50a8754c6f7152e85c1b/regex-{version}.tar.gz'

    depends = ['setuptools']


recipe = RegexRecipe()

## Instruction:
Fix compilation for regex recipe
## Code After:
from pythonforandroid.recipe import CompiledComponentsPythonRecipe


class RegexRecipe(CompiledComponentsPythonRecipe):
    name = 'regex'
    version = '2017.07.28'
    url = 'https://pypi.python.org/packages/d1/23/5fa829706ee1d4452552eb32e0bfc1039553e01f50a8754c6f7152e85c1b/regex-{version}.tar.gz'

    depends = ['setuptools']
    call_hostpython_via_targetpython = False


recipe = RegexRecipe()
