Skip to contentSkip to conversation

Metadata is missing in some Python packages

DISCUSSION Guenther Meyer 2 participants 8 messages Apr 4, 2019 – Apr 9, 2019

lore
Share & tools
lore
#0 lore raw

Hi,

I added some python recipes for my application, and now I have the problem, that in some of the created packages the metadata is missing. For example, the package I have for Twisted 18.7 is one of those. When I use a python package like daphne, which is dependent on Twisted >= 18.7, then it won't work, because daphne checks the version before doing anything else.
I created a workaround by removing this check in the recipe, but that doesn't feel right.

Maybe there is something I missed in my recipes?

Signature · 2 lines
Summer-Hack-Session 2.8
http://session.pestilenz.org/session2/
#1 lore raw

What metadata in particular do you refer to?

Ross

Quoted 24 lines · Guenther Meyer

Hi,

I added some python recipes for my application, and now I have the problem, that in some of the created packages the metadata is missing. For example, the package I have for Twisted 18.7 is one of those. When I use a python package like daphne, which is dependent on Twisted >= 18.7, then it won't work, because daphne checks the version before doing anything else.
I created a workaround by removing this check in the recipe, but that doesn't feel right.

Maybe there is something I missed in my recipes?

--
Summer-Hack-Session 2.8
http://session.pestilenz.org/session2/

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw
Quoted 1 line · Ross

What metadata in particular do you refer to?

The *egg-info folders and everything contained in them, especially the files PKG-INFO or METADATA. The recipes are basically identical.

Some packages have it, some not:

Django-2.1.7-py3.5.egg-info
EasyProcess-0.2.5-py3.5.egg-info
HelperSDT
HelperSDT-0.1.0-py3.5.egg-info
OpenSSL
PyHamcrest-1.9.0-py3.5.egg-info
PySocks-1.6.8-py3.5.egg-info
PyVirtualDisplay-0.2.1-py3.5.egg-info
Twisted-0.0.0-py3.5.egg-info
aioredis
aioredis-1.2.0-py3.5.egg-info
asgiref
asgiref-2.3.2-py3.5.egg-info
asn1crypto
asn1crypto-0.24.0-py3.5.egg-info
async_timeout
async_timeout-3.0.1-py3.5.egg-info
attr
attrs-18.1.0-py3.5.egg-info
autobahn
autobahn-19.1.1-py3.5.egg-info
behave
behave-1.2.6-py3.5.egg-info
can
certifi
certifi-2018.8.13-py3.5.egg-info
cffi
cffi-1.11.5-py3.5.egg-info
channels
channels-2.1.7-py3.5.egg-info
channels_redis
channels_redis-2.3.2-py3.5.egg-info
chardet
chardet-3.0.4-py3.5.egg-info
click
click-6.7-py3.5.egg-info
constantly
constantly-15.1.0-py3.5.egg-info
cryptography
cryptography-2.3-py3.5.egg-info
daphne
daphne-2.2.5-py3.5.egg-info
django
django_model_utils-3.1.2-py3.5.egg-info
easyprocess
hamcrest
hiredis
hiredis-1.0.0-py3.5.egg-info
idna
idna-2.7-py3.5.egg-info
incremental
incremental-17.5.0-py3.5.egg-info
model_utils
msgpack
msgpack_python-0.5.6-py3.5.egg-info
ndg
ndg_httpsclient-0.5.1-py3.5.egg-info
parse-1.8.4-py3.5.egg-info
parse_type
parse_type-0.4.2-py3.5.egg-info
ply
ply-3.11-py3.5.egg-info
psutil
psutil-5.4.6-py3.5.egg-info
psycopg2
psycopg2-2.7.5-py3.5.egg-info
pyOpenSSL-18.0.0-py3.5.egg-info
pyasn1
pyasn1-0.4.4-py3.5.egg-info
pycparser
pycparser-2.18-py3.5.egg-info
python_can-2.2.1-py3.5.egg-info
pytz
pytz-2018.5-py3.5.egg-info
pyvirtualdisplay
requests
requests-2.19.1-py3.5.egg-info
selenium
selenium-3.141.0-py3.5.egg-info
service_identity
service_identity-18.1.0-py3.5.egg-info
setuptools
setuptools-40.0.0-py3.5.egg-info
six-1.11.0-py3.5.egg-info
twisted
txaio
txaio-18.8.1-py3.5.egg-info
urllib3
urllib3-1.23-py3.5.egg-info
websocket
websocket_client-0.54.0-py3.5.egg-info
wrapt
wrapt-1.10.11-py3.5.egg-info
zope
zope.interface-4.5.0-py3.5.egg-info

Signature · 2 lines
Summer-Hack-Session 2.8
http://session.pestilenz.org/session2/
#3 lore raw

Specifically for twisted, do you mean these files:

python3-twisted-core:

        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/PKG-INFO
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/SOURCES.txt
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/dependency_links.txt
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/entry_points.txt
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/not-zip-safe
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/requires.txt

Ross

Quoted 112 lines · Guenther Meyer
Quoted 1 line · Ross

What metadata in particular do you refer to?

The *egg-info folders and everything contained in them, especially the files PKG-INFO or METADATA. The recipes are basically identical.

Some packages have it, some not:

Django-2.1.7-py3.5.egg-info
EasyProcess-0.2.5-py3.5.egg-info
HelperSDT
HelperSDT-0.1.0-py3.5.egg-info
OpenSSL
PyHamcrest-1.9.0-py3.5.egg-info
PySocks-1.6.8-py3.5.egg-info
PyVirtualDisplay-0.2.1-py3.5.egg-info
Twisted-0.0.0-py3.5.egg-info
aioredis
aioredis-1.2.0-py3.5.egg-info
asgiref
asgiref-2.3.2-py3.5.egg-info
asn1crypto
asn1crypto-0.24.0-py3.5.egg-info
async_timeout
async_timeout-3.0.1-py3.5.egg-info
attr
attrs-18.1.0-py3.5.egg-info
autobahn
autobahn-19.1.1-py3.5.egg-info
behave
behave-1.2.6-py3.5.egg-info
can
certifi
certifi-2018.8.13-py3.5.egg-info
cffi
cffi-1.11.5-py3.5.egg-info
channels
channels-2.1.7-py3.5.egg-info
channels_redis
channels_redis-2.3.2-py3.5.egg-info
chardet
chardet-3.0.4-py3.5.egg-info
click
click-6.7-py3.5.egg-info
constantly
constantly-15.1.0-py3.5.egg-info
cryptography
cryptography-2.3-py3.5.egg-info
daphne
daphne-2.2.5-py3.5.egg-info
django
django_model_utils-3.1.2-py3.5.egg-info
easyprocess
hamcrest
hiredis
hiredis-1.0.0-py3.5.egg-info
idna
idna-2.7-py3.5.egg-info
incremental
incremental-17.5.0-py3.5.egg-info
model_utils
msgpack
msgpack_python-0.5.6-py3.5.egg-info
ndg
ndg_httpsclient-0.5.1-py3.5.egg-info
parse-1.8.4-py3.5.egg-info
parse_type
parse_type-0.4.2-py3.5.egg-info
ply
ply-3.11-py3.5.egg-info
psutil
psutil-5.4.6-py3.5.egg-info
psycopg2
psycopg2-2.7.5-py3.5.egg-info
pyOpenSSL-18.0.0-py3.5.egg-info
pyasn1
pyasn1-0.4.4-py3.5.egg-info
pycparser
pycparser-2.18-py3.5.egg-info
python_can-2.2.1-py3.5.egg-info
pytz
pytz-2018.5-py3.5.egg-info
pyvirtualdisplay
requests
requests-2.19.1-py3.5.egg-info
selenium
selenium-3.141.0-py3.5.egg-info
service_identity
service_identity-18.1.0-py3.5.egg-info
setuptools
setuptools-40.0.0-py3.5.egg-info
six-1.11.0-py3.5.egg-info
twisted
txaio
txaio-18.8.1-py3.5.egg-info
urllib3
urllib3-1.23-py3.5.egg-info
websocket
websocket_client-0.54.0-py3.5.egg-info
wrapt
wrapt-1.10.11-py3.5.egg-info
zope
zope.interface-4.5.0-py3.5.egg-info

--
Summer-Hack-Session 2.8
http://session.pestilenz.org/session2/

#4 lore raw
Quoted 9 lines · Ross

Specifically for twisted, do you mean these files:

python3-twisted-core:

        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/PKG-INFO
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/SOURCES.txt
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/dependency_links.txt
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/entry_points.txt
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/not-zip-safe
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/requires.txt

yes, exactly.

Signature · 2 lines
Summer-Hack-Session 2.8
http://session.pestilenz.org/session2/
#5 lore raw

So for me they're in python3-twisted-core on target, and if you have the right DEPENDS then it should be there for build time.

Ross

Quoted 21 lines · Guenther Meyer
Quoted 9 lines · Ross

Specifically for twisted, do you mean these files:

python3-twisted-core:

        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/PKG-INFO
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/SOURCES.txt
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/dependency_links.txt
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/entry_points.txt
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/not-zip-safe
        /usr/lib/python3.7/site-packages/Twisted-18.4.0-py3.7.egg-info/requires.txt

yes, exactly.

--
Summer-Hack-Session 2.8
http://session.pestilenz.org/session2/

#6 lore raw
Quoted 2 lines · Ross

So for me they're in python3-twisted-core on target, and if you have the right DEPENDS then it should be there for build time.

I will have a look at this, when I'm back in the office again. The thing is, I needed a newer version of twisted, so I did my own recipe. But obviously it is not enough to let setuptools do the work.

Signature · 2 lines
Summer-Hack-Session 2.8
http://session.pestilenz.org/session2/
#7 lore raw

An upgrade should just be a matter of taking the meta-python recipe and doing a version bump/checksum update. If you've written a recipe from scratch then you're probably missing some of the glue required.

Ross

Quoted 16 lines · Guenther Meyer
Quoted 2 lines · Ross

So for me they're in python3-twisted-core on target, and if you have the right DEPENDS then it should be there for build time.

I will have a look at this, when I'm back in the office again. The thing is, I needed a newer version of twisted, so I did my own recipe. But obviously it is not enough to let setuptools do the work.

--
Summer-Hack-Session 2.8
http://session.pestilenz.org/session2/