Commit graph

121 commits

Author SHA1 Message Date
Andre Miras
c06c51f149 Uses new cd context manager more
Also adds logging as we change directories.
2020-05-03 11:57:58 +02:00
Andre Miras
58713e8b6e Activates venv before venv build
Also fixes toolchain.py failing silently on missing dependency.
2020-05-03 10:20:09 +02:00
Andre Miras
d180ee0807 Fixes building in venv
Borrowed from p4a:
https://github.com/kivy/python-for-android/pull/2159
Also refs upstream issue:
https://bugs.python.org/issue40261
Note that the fix used upstream cannot really be used directly here
because the actual system Python is impacted.
Adds venv build to CI to check for regressions.
2020-05-01 19:56:15 +02:00
Richard Larkin
8416d46fd4
Fix flake8 CI check on toolchain, remaining recipes (#456)
* 🔥 Fix flake8 checks for host_setuptools3

* 🔥 Fix flake8 checks for kivy recipe

*  Fix flake8 for toolchain.py

* 💡 Set python3 as the default python

* Add .tox and ven to .gitignore

* Update toolchain.py

Co-Authored-By: Andre Miras <AndreMiras@users.noreply.github.com>

Co-authored-by: Andre Miras <AndreMiras@users.noreply.github.com>
2020-04-27 07:29:11 +02:00
Mirko
9bb9efe0f7
Update to python 3.8.2 (#443)
* bump python version to 3.8.2

* Revert to cython 0.28.1
2020-04-25 20:12:59 +02:00
Mirko
921f6b209d Fixes missing sqlite3 module in python3 (#398)
Cleanup
2019-11-24 23:49:08 +01:00
Mathieu Virbel
49b16c6f0d toolchain: have a better installation method
Instead of installing on a temporary directory, and copying only what
we want, this install directly in the dist,
and the recipe can clean itself in
reduce_python_package().

This prevent the fix for kivy recipes using bdist_egg and easy_install.
2019-09-28 18:04:36 +02:00
Mathieu Virbel
180ad7ebd0 xcode: fix error on missing frameworks directory 2019-09-28 18:02:36 +02:00
Richard Larkin
1d01005ba5 Python3 pillow recipe (#394)
* Pillow 6.1.0 building for python 3

* Added tiff disabling

* Removed prefix patch

* Removed darwin patch

* Removed standard locations patch

* Removed patch file altogether

* Removed easy_install, renamed to libpillow.a

* Added back destdir prefix

* Switched to python3 directory

* Removed commented code

* Remove pkgresources dependency

* Adde pillow 6.1.0 to docs
2019-09-27 23:59:42 +02:00
Mathieu Virbel
51e92ba2ee toolchain: reintroduce junk cleaning
Fixes #388
2019-09-22 23:25:54 +02:00
richard
c032abdf83 Added support for pip3 to the toolchain 2019-09-18 22:06:28 +02:00
Mathieu Virbel
e3fa7a300f
Merge pull request #358 from hackalog/add_info
Add build_info subcommand
2019-02-07 15:48:06 +01:00
Mathieu Virbel
bd2f7da36c
Merge pull request #349 from ssolari/pip_install_fix
fix pip install of modules existing in environment
2019-02-07 10:03:29 +01:00
Hackalog
7dd350c75b Use python logging infrastructure (#357) 2019-02-07 10:00:22 +01:00
Kjell Wooding
7b58f0f6cc clean up output somewhat and add to usage 2019-02-06 23:35:48 -05:00
Kjell Wooding
0e163f4560 Add an info target to display arch/context information 2019-02-06 23:15:25 -05:00
Mathieu Virbel
4cd60d39a7
Merge pull request #342 from learnleapfly/improve_frameworks
Improve frameworks support to prepare for buildozer use
2019-01-31 15:03:32 +01:00
Mathieu Virbel
88e0001ab4
Merge pull request #332 from learnleapfly/fix_urlretrieve
Fix urlretrieve issue on python2
2019-01-31 13:18:08 +01:00
sorensolari
af4ef26c33 provides fix for pip installing modules that may exist in active environment 2019-01-26 15:06:30 -08:00
Kjell Wooding
b4219a5165 change add_framework to 'append' type (less confusing with positional arguments). Change name to --add-frameworks, as the flag can now be specified once per additional framework. Add frameworks from create also 2019-01-17 00:35:29 -05:00
Mathieu Virbel
49c607a80d
Merge pull request #338 from learnleapfly/deprecate_armv7
Deprecate armv7
2019-01-14 19:41:24 +01:00
Kjell Wooding
405af9f828 remove these, don't just comment out 2019-01-13 21:02:26 -05:00
Mathieu Virbel
11326c9d16
Merge pull request #339 from learnleapfly/add_frameworks
Add frameworks
2019-01-13 23:34:14 +01:00
Mathieu Virbel
93edfa2a6a
Merge pull request #337 from learnleapfly/versions_as_strings
Versions as strings
2019-01-13 23:27:59 +01:00
Kjell Wooding
75d87ac526 add frameworks via update subcommand 2019-01-12 21:13:49 -05:00
Kjell Wooding
b35556b379 increase minapi, remove armv7 (32-bit arm),
link to arm64 by default and use new-style linker flags
2019-01-12 21:12:30 -05:00
Kjell Wooding
eeb237c00a remove line - no longer needed 2019-01-12 17:41:05 -05:00
Kjell Wooding
545d24e010 remove __pycache__ from the recipe list, and fix the hostlibffi recipe so it displays correctly in ./toolchain status 2019-01-12 17:36:26 -05:00
Kjell Wooding
8022c268bb exclude __pycache__ from recipe dirs 2019-01-12 17:28:12 -05:00
Kjell Wooding
7691b541a4 now that version is a string, fix major computation 2019-01-12 15:38:41 -05:00
Kjell Wooding
e7ec5d35b8 make workaround specific to the PY2 issue and incorporate @jonast's retry PR 2019-01-10 14:49:57 -05:00
Kjell Wooding
328a742849 requests can't handle ftp. Only use it if urlretrieve fails 2019-01-10 14:49:57 -05:00
Kjell Wooding
999dc68123 Downloading was broken in certain cases on python 2.
FancyUrlopener.urlretrieve was failing on redirect, but in an insidious way, because of a bug in the python-future module:
https://github.com/PythonCharmers/python-future/issues/425
Replace with the requests module for the time being.
2019-01-10 14:49:57 -05:00
Kjell Wooding
8af6bc59e0 Remove hardcoded version numbers on python and pip
restore "hostpython2" filename
2019-01-04 14:22:13 -05:00
Mathieu Virbel
7b5e28d643 add an error message for creating a project without python2 or python3 compiled. Closes #311 2018-11-16 10:52:02 +01:00
Mathieu Virbel
61b5c86b91 use tempfile for managing CC/CXX, and it also prevent leaking file every compilation 2018-11-09 23:53:36 +01:00
Mathieu Virbel
f316b8422c Merge branch 'python3' of github.com:kivy/kivy-ios into python3 2018-11-09 19:52:58 +01:00
Mathieu Virbel
0e52dab468 fix recipes order with hostpython/python alias that didnt work in the first run 2018-11-09 19:14:05 +01:00
Mathieu Virbel
9ad9abf9b6 fix cookiecutter project for python3 2018-11-09 18:48:08 +01:00
Mathieu Virbel
7c8a2c6c4b rework toolchain for python 3, new possibility to have a specific name for the include directory (like the recipe libffi install in ffi directory, not libffi), and new pyobjus recipe (works with new-ios-toolchain branch). 2018-11-09 17:54:56 +01:00
Mathieu Virbel
811cbd48a7 add alias for hostpython/python, that point to either 2 or 3 version depending of the previous compiled state.
This allows the recipe to point on an versionless python.
2018-11-02 11:44:25 +01:00
Mathieu Virbel
5311f0c098 fixes requirements, remove mod_pbxproj and use up to date mod_pbxproj to handle tbd files 2018-10-28 22:07:10 +01:00
Mathieu Virbel
3f262e6549 fix hostpython openssl inclusion, and cxxsh 2018-10-28 13:18:54 +01:00
Mathieu Virbel
6ffd07ab06 print recipes in order 2018-10-28 12:14:35 +01:00
Mathieu Virbel
b73c520923 put CFLAGS into CC to prevent issue during ./configure. ref #301 2018-10-28 12:01:15 +01:00
Mathieu Virbel
5a60fa58fe fixes hostlibffi for latest xcode (removes 32 bits compilation unsupported by xcode, and fixes cache issues within xcode) 2018-10-27 16:21:15 +02:00
Akshay Arora
bce521ef9b
Merge pull request #276 from cruor99/fix-utf8-error-on-output
Fix unicode error introduced in latest macOS
2018-07-11 05:57:50 +05:30
amru rosyada
4fec0f68ff fixing error TypeError: 'dict_keys' object is not subscriptable 2018-03-17 06:16:29 +07:00
amru rosyada
b96498a9b4 fix error when call recipe list "toolchain.py recipes" 2018-03-17 06:11:56 +07:00
Cruor99
ac5c67e748 Fix unicode error introduced in latest macOS 2017-12-10 15:56:08 +01:00