remove unused recipes

This commit is contained in:
Akinwale Ariwodola 2021-08-21 12:20:13 +01:00
parent ec5a213a23
commit 593e036a1d
4 changed files with 0 additions and 86 deletions

View file

@ -1,14 +0,0 @@
from pythonforandroid.recipe import PythonRecipe
class IdnaRecipe(PythonRecipe):
name = 'idna'
version = '2.6'
url = 'https://github.com/kjd/idna/archive/v{version}.tar.gz'
depends = [('python2', 'python3crystax'), 'setuptools']
call_hostpython_via_targetpython = False
recipe = IdnaRecipe()

View file

@ -1,33 +0,0 @@
import glob
from pythonforandroid.recipe import CompiledComponentsPythonRecipe, Recipe
from os.path import join
import os
import sh
class NetifacesRecipe(CompiledComponentsPythonRecipe):
version = '0.10.7'
url = 'https://files.pythonhosted.org/packages/81/39/4e9a026265ba944ddf1fea176dbb29e0fe50c43717ba4fcf3646d099fe38/netifaces-{version}.tar.gz'
depends = [('python2', 'python3crystax'), 'setuptools']
call_hostpython_via_targetpython = False
patches = ['socket-ioctls.patch']
def get_recipe_env(self, arch):
env = super(NetifacesRecipe, self).get_recipe_env(arch)
env['LDSHARED'] = env['CC'] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
if self.ctx.ndk == 'crystax':
# only keeps major.minor (discards patch)
python_version = self.ctx.python_recipe.version[0:3]
ndk_dir_python = os.path.join(self.ctx.ndk_dir, 'sources/python/', python_version)
env['LDFLAGS'] += ' -L{}'.format(os.path.join(ndk_dir_python, 'libs', arch.arch))
env['LDFLAGS'] += ' -lpython{}'.format(python_version)
# until `pythonforandroid/archs.py` gets merged upstream:
# https://github.com/kivy/python-for-android/pull/1250/files#diff-569e13021e33ced8b54385f55b49cbe6
env['CFLAGS'] += ' -I{}/include/python/'.format(ndk_dir_python)
return env
recipe = NetifacesRecipe()

View file

@ -1,29 +0,0 @@
--- a/netifaces.c 2018-09-25 21:26:48.238476102 +0100
+++ b/netifaces.c 2018-09-25 21:55:14.201995669 +0100
@@ -22,6 +22,10 @@
obj = Py_InitModule3((name), (methods), (doc));
#endif
+#ifndef HAVE_SOCKET_IOCTLS
+#define HAVE_SOCKET_IOCTLS 1
+#endif
+
#ifndef WIN32
# include <sys/types.h>
@@ -178,12 +182,12 @@
# include <ifaddrs.h>
# endif /* HAVE_GETIFADDRS */
-# if !HAVE_GETIFADDRS && (!HAVE_SOCKET_IOCTLS || !HAVE_SIOCGIFCONF)
+//# if !HAVE_GETIFADDRS && (!HAVE_SOCKET_IOCTLS || !HAVE_SIOCGIFCONF)
/* If the platform doesn't define, what we need, barf. If you're seeing this,
it means you need to write suitable code to retrieve interface information
on your system. */
-# error You need to add code for your platform.
-# endif
+//# error You need to add code for your platform.
+//# endif
#else /* defined(WIN32) */

View file

@ -1,10 +0,0 @@
from pythonforandroid.recipe import PythonRecipe
class SixRecipe(PythonRecipe):
version = '1.9.0'
url = 'https://pypi.python.org/packages/source/s/six/six-{version}.tar.gz'
depends = [('python2', 'python3crystax')]
recipe = SixRecipe()