Commit graph

14 commits

Author SHA1 Message Date
Alexandru Ardelean
68312f49c0 python packages: move all things python under lang/python
I admit this may be be a bit aggressive, but the lang
folder is getting cluttered/filled up with Python, PHP, Perl,
Ruby, etc. packages.

Makes sense to try to group them into per-lang folders.

I took the Pythons.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-05-17 16:51:14 +03:00
Alexandru Ardelean
a5b9cc6a24 micropython-lib: workaround the install build rule
So, I chose to workaround it in the Makefile.
A proper fix is a bit more work that I would like to do now,
and I have no suggestion/idea for a good fix right now.

The problem is with the `CMD` part that's used in the install rule,
together with the fact that PREFIX is the same as the source location.

```
CMD="find . -maxdepth 1 -mindepth 1 \( -name '*.py' -not -name 'test_*' -not -name 'setup.py' \) -or \( -type d -not -name 'dist' -not -name '*.egg-info' -not -name '__pycache__' \)| xargs --no-run-if-empty cp -r -t $(PREFIX)"
```

The gist of it, is that it seems that this will filter
and copy to `PREFIX` all python sources and folders that
are not names `dist`, `__pycache__`, or `*.egg-info`.
And it searches all folders at (exactly) depth 1.

The solution I chose is to put a `dist` folder under
`_install_tmp`, which is kind of a trick to go
to depth 2 and avoid both conditions in the `find` call.

This avoids errors:
```
cp: './weakref.py' and '/home/sandu/work/lede/build_dir/target-mips_24kc_musl-1.1.16/micropython-lib-1.8.6-f81e979c56dddb771ad36ec381b7f2c6cd12111f-f81e979c56dddb771ad36ec381b7f2c6cd12111f/_install_tmp/weakref.py' are the same file
cp: './xmltok.py' and '/home/sandu/work/lede/build_dir/target-mips_24kc_musl-1.1.16/micropython-lib-1.8.6-f81e979c56dddb771ad36ec381b7f2c6cd12111f-f81e979c56dddb771ad36ec381b7f2c6cd12111f/_install_tmp/xmltok.py' are the same file
cp: './zipfile.py' and '/home/sandu/work/lede/build_dir/target-mips_24kc_musl-1.1.16/micropython-lib-1.8.6-f81e979c56dddb771ad36ec381b7f2c6cd12111f-f81e979c56dddb771ad36ec381b7f2c6cd12111f/_install_tmp/zipfile.py' are the same file
```

Initially I tried to add exit 0, but that would
just hide other (potentially worse) issues.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2017-01-17 15:23:19 +02:00
Breuss Simon
7e1b756cd3 update micropython and micropython-lib to v1.8.6
Signed-off-by: Breuss Simon <simon.breuss@gmail.com>
2016-11-21 20:07:32 +01:00
Roger
34dc874cd0 micropython-lib: update
Signed-off-by: Roger D <rogerdammit@gmail.com>
2015-11-22 15:42:19 -06:00
Roger
a6b4e1a357 micropython: update to latest
Signed-off-by: Roger D <rogerdammit@gmail.com>
2015-08-28 10:26:45 -05:00
Roger
13a3981ba5 micropython: update copyright 2015-07-03 11:54:20 -05:00
Roger
a7f6d36d6e micropython/micropython-lib: update to latest
Signed-off-by: Roger D <rogerdammit@gmail.com>
2015-07-02 12:36:27 -05:00
Roger
78ce3add21 micropython-lib: update to latest
Signed-off-by: Roger D <rogerdammit@gmail.com>
2015-06-01 11:24:33 -05:00
Roger
c69cb362d9 micropython-lib: update to latest
Signed-off-by: Roger D <rogerdammit@gmail.com>
2015-03-02 13:30:16 -06:00
Roger
e341c88e2c micropython-lib: update and add package category
Signed-off-by: Roger D <rogerdammit@gmail.com>
2014-11-02 11:10:51 -06:00
Roger
0dfa0abacd micropython-lib: update license info
Signed-off-by: Roger D <rogerdammit@gmail.com>
2014-08-28 17:48:12 -05:00
Roger
b4c305fd15 micropython-lib: update to latest and fix version tag
Signed-off-by: Roger D <rogerdammit@gmail.com>
2014-08-28 11:49:45 -05:00
Roger
24e5e8aa2c micropython-lib: fix DEPENDS
Signed-off-by: Roger D <rogerdammit@gmail.com>
2014-08-18 07:39:11 +02:00
Roger
a0658b5ca1 micropython-lib: add
Signed-off-by: Roger D <rogerdammit@gmail.com>
2014-08-18 07:39:11 +02:00