fix _scproxy error when importing urllib by adding a fake _scproxy.py
This commit is contained in:
parent
10c9887263
commit
6a1e722cc4
2 changed files with 12 additions and 0 deletions
10
src/python_files/_scproxy.py
Normal file
10
src/python_files/_scproxy.py
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
'''
|
||||||
|
Stub functions for _scproxy on iOS
|
||||||
|
No proxy is supported yet.
|
||||||
|
'''
|
||||||
|
|
||||||
|
def _get_proxy_settings():
|
||||||
|
return {'exclude_simple': 1}
|
||||||
|
|
||||||
|
def _get_proxies():
|
||||||
|
return {}
|
|
@ -24,6 +24,7 @@ try patch -p1 < $KIVYIOSROOT/src/python_files/Python-$PYTHON_VERSION-static-_sql
|
||||||
|
|
||||||
# Copy our setup for modules
|
# Copy our setup for modules
|
||||||
try cp $KIVYIOSROOT/src/python_files/ModulesSetup Modules/Setup.local
|
try cp $KIVYIOSROOT/src/python_files/ModulesSetup Modules/Setup.local
|
||||||
|
try cp $KIVYIOSROOT/src/python_files/_scproxy.py Lib/_scproxy.py
|
||||||
|
|
||||||
|
|
||||||
echo "Building for native machine ============================================"
|
echo "Building for native machine ============================================"
|
||||||
|
@ -51,6 +52,7 @@ ln -s "$SDKROOT/usr/lib/libgcc_s.1.dylib" extralibs/libgcc_s.10.4.dylib || echo
|
||||||
|
|
||||||
# Copy our setup for modules
|
# Copy our setup for modules
|
||||||
try cp $KIVYIOSROOT/src/python_files/ModulesSetup Modules/Setup.local
|
try cp $KIVYIOSROOT/src/python_files/ModulesSetup Modules/Setup.local
|
||||||
|
try cp $KIVYIOSROOT/src/python_files/_scproxy.py Lib/_scproxy.py
|
||||||
|
|
||||||
try ./configure CC="$ARM_CC" LD="$ARM_LD" \
|
try ./configure CC="$ARM_CC" LD="$ARM_LD" \
|
||||||
CFLAGS="$ARM_CFLAGS" \
|
CFLAGS="$ARM_CFLAGS" \
|
||||||
|
|
Loading…
Reference in a new issue