<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/lang/micropython-lib/Makefile, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/'/>
<updated>2017-05-17T13:51:14Z</updated>
<entry>
<title>python packages: move all things python under lang/python</title>
<updated>2017-05-17T13:51:14Z</updated>
<author>
<name>Alexandru Ardelean</name>
</author>
<published>2017-05-17T13:45:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=68312f49c0b4456e665ed438a86a44738caa765a'/>
<id>urn:sha1:68312f49c0b4456e665ed438a86a44738caa765a</id>
<content type='text'>
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 &lt;ardeleanalex@gmail.com&gt;
</content>
</entry>
<entry>
<title>micropython-lib: workaround the `install` build rule</title>
<updated>2017-01-17T13:23:19Z</updated>
<author>
<name>Alexandru Ardelean</name>
</author>
<published>2017-01-17T13:02:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=a5b9cc6a24581a68dcb3b6a053b71f8ae83ee530'/>
<id>urn:sha1:a5b9cc6a24581a68dcb3b6a053b71f8ae83ee530</id>
<content type='text'>
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 &lt;ardeleanalex@gmail.com&gt;
</content>
</entry>
<entry>
<title>update micropython and micropython-lib to v1.8.6</title>
<updated>2016-11-21T19:07:32Z</updated>
<author>
<name>Breuss Simon</name>
</author>
<published>2016-11-21T18:10:04Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=7e1b756cd30d88dcee9c45972f31b023e2bddbab'/>
<id>urn:sha1:7e1b756cd30d88dcee9c45972f31b023e2bddbab</id>
<content type='text'>
Signed-off-by: Breuss Simon &lt;simon.breuss@gmail.com&gt;
</content>
</entry>
<entry>
<title>micropython-lib: update</title>
<updated>2015-11-22T21:42:19Z</updated>
<author>
<name>Roger</name>
</author>
<published>2015-11-22T21:42:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=34dc874cd084edb897fdf4dd00d2e32e3c0b8cb9'/>
<id>urn:sha1:34dc874cd084edb897fdf4dd00d2e32e3c0b8cb9</id>
<content type='text'>
Signed-off-by: Roger D &lt;rogerdammit@gmail.com&gt;</content>
</entry>
<entry>
<title>micropython: update to latest</title>
<updated>2015-08-28T15:26:45Z</updated>
<author>
<name>Roger</name>
</author>
<published>2015-08-28T15:26:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=a6b4e1a357f314998cb2098dd7d3235d7d28ea09'/>
<id>urn:sha1:a6b4e1a357f314998cb2098dd7d3235d7d28ea09</id>
<content type='text'>
Signed-off-by: Roger D &lt;rogerdammit@gmail.com&gt;
</content>
</entry>
<entry>
<title>micropython: update copyright</title>
<updated>2015-07-03T16:54:20Z</updated>
<author>
<name>Roger</name>
</author>
<published>2015-07-03T16:54:20Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=13a3981ba547ea621a1072ed2b1119ef0ffa6179'/>
<id>urn:sha1:13a3981ba547ea621a1072ed2b1119ef0ffa6179</id>
<content type='text'>
</content>
</entry>
<entry>
<title>micropython/micropython-lib: update to latest</title>
<updated>2015-07-02T17:36:27Z</updated>
<author>
<name>Roger</name>
</author>
<published>2015-07-02T17:36:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=a7f6d36d6e5da6115c963fd28e8e42ce3e20a742'/>
<id>urn:sha1:a7f6d36d6e5da6115c963fd28e8e42ce3e20a742</id>
<content type='text'>
Signed-off-by: Roger D &lt;rogerdammit@gmail.com&gt;
</content>
</entry>
<entry>
<title>micropython-lib: update to latest</title>
<updated>2015-06-01T16:24:33Z</updated>
<author>
<name>Roger</name>
</author>
<published>2015-06-01T16:24:33Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=78ce3add21744e57e9f2919e12d3a2e411f10439'/>
<id>urn:sha1:78ce3add21744e57e9f2919e12d3a2e411f10439</id>
<content type='text'>
Signed-off-by: Roger D &lt;rogerdammit@gmail.com&gt;
</content>
</entry>
<entry>
<title>micropython-lib: update to latest</title>
<updated>2015-03-02T19:30:16Z</updated>
<author>
<name>Roger</name>
</author>
<published>2015-03-02T19:30:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=c69cb362d94ad30fb720466bd29664da1b9c3b48'/>
<id>urn:sha1:c69cb362d94ad30fb720466bd29664da1b9c3b48</id>
<content type='text'>
Signed-off-by: Roger D &lt;rogerdammit@gmail.com&gt;
</content>
</entry>
<entry>
<title>micropython-lib: update and add package category</title>
<updated>2014-11-02T17:10:51Z</updated>
<author>
<name>Roger</name>
</author>
<published>2014-11-02T17:10:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=e341c88e2c2d59bfa1f1a1d6e7bb3f6a6a912eeb'/>
<id>urn:sha1:e341c88e2c2d59bfa1f1a1d6e7bb3f6a6a912eeb</id>
<content type='text'>
Signed-off-by: Roger D &lt;rogerdammit@gmail.com&gt;
</content>
</entry>
</feed>
