Commit graph

11 commits

Author SHA1 Message Date
Richard Larkin
64bd692632
Flake8 CI fixes (#451)
* Pep8 fixes

* tox Pep8 compliance

* Excluded external tools folder from flake 8 tests

* Added Flake 8 exclusions

* Pep8 fixes

* Pep8 fixes

* Corrected type

* Pep8 fixes

* Pep 8 compliance

* Pep8 fixes

* Pep8  fixes

* Pep8 fixes

* Pep8 fixes

* Pep 8 fixes

* Pep 8 fixes

* Pep8 fixes

* Pep8 fixes

* Pep8 fixes

* Pep8

* Pep8

* Pep 8

* Pep 8

* Pep8 fixes

* Pep8

* Pep8

* Pep8

* Pep8 fixes

* Pep8 fixes

* Pep8 fixes

* Pep8 fixes

* Pep8 fixes

* Revert chagnes

* Revert changes to kivy/__init.py

* Revert changes

* REvert changes

* Revert changes

* Revert changes to toolchain

* Add files exclusions to tox.ini

* Added exclusions for alias recipes

* Remove dead code

* Added py extension to recipes

* Removed recipe build skip

* Improves recipe matching

Previous expression was matching all the following three lines of a `git diff --name-only` output.
```
recipes/hostlibffi/__init__.py
recipes/hostpython.py
recipes/hostpython2/__init__.py
```
This was resulting to a bug when later splitting with `recipe = file_path.split('/')[1]` the `recipes/hostpython.py` string would return including the `\n` new line char, see:
 ```
>>> 'recipes/hostpython.py\n'.split('/')[1]
'hostpython.py\n'
>>> 'recipes/hostlibffi/__init__.py\n'.split('/')[1]
'hostlibffi'
>>> 
```

Co-authored-by: Andre Miras <AndreMiras@users.noreply.github.com>
2020-04-25 18:28:16 +02:00
Mathieu Virbel
f1f62f20fb cythonize: prevent invalid replacement of global variables. Ref #240 2017-05-14 17:43:16 +02:00
cclauss
f4d44ac122 data = data.replace(pat, sub) 2017-04-14 02:41:48 +02:00
cclauss
51cafa738b Streamline replacement logic 2017-04-14 02:39:07 +02:00
Mathieu Virbel
34c812dbda cythonize: fix recursive find issue due to a missing replacement with Python 2015-02-12 00:52:16 +01:00
Olli Wang
3761cf233d Updates print and open file statements for Python3 compatibility.
Replaces print statement as print() and replaces file() with open() to resolve error occurred when running the `tools/build-ios.sh` script under Python 3 environment.

Signed-off-by: Olli Wang <olliwang@ollix.com>
2014-02-03 13:58:11 +08:00
Mathieu Virbel
71a81a6924 force environ when opening a subprocess (cythonize) 2013-10-22 13:29:45 +02:00
Mathieu Virbel
4a132275cb avoid listing non-existing path in PATH. 2013-05-07 08:48:16 +02:00
Mathieu Virbel
ad85ed15f0 detect if we could use cython-2.7 prior to cython. closes #28 2013-02-28 19:07:05 +01:00
Mathieu Virbel
199850bec5 cythonize: use the last part in the modname (example: lxml.etree modulename is etree only.) 2013-01-23 02:03:22 +01:00
Mathieu Virbel
92f38fe2d7 fix builtin module conflict
Now all the cythonized modules are rewrite with a mangled name of
package + module name. This avoid symbol conflict if you have the same
module.so as another library (for example, audiostream.sources.thread
and python thread.so was in conflict).

Then, a custom builtin importer is loaded before the application start,
and when you will want to import audiostream.sources.thread, if will
import builtin audiostream_sources_thread.

kivy/ios/lxml/audiostream recipes are impacted. A full rebuild is
needed.
2013-01-05 12:17:52 +01:00