AVSystem / Anjay-mbedos-client

Apache License 2.0
3 stars 6 forks source link

.mbedignore with venv #8

Closed JanneKiiskila closed 2 years ago

JanneKiiskila commented 2 years ago

To avoid some nasty surprises in case you do a "proper clean installation of Python 2" for mbed cli (in case you want to run Mbed OS 5.15.x). I.e.

virtualenv venv -p /usr/bin/python2.7
pip install mbed-cli
pip install mbed-os/requirements.txt

It will try to compile EVERYTHING - as per usual and then fails when it does not find various Python compilation things.

Compile [ 97.3%]: _speedups.c
[Error] pyconfig.h@122,3: #error unknown multiarch location for pyconfig.h
[Error] pyconfig.h@122,3: #error unknown multiarch location for pyconfig.h
[Error] pyconfig.h@122,3: #error unknown multiarch location for pyconfig.h
[Error] _speedups.c@18,8: unknown type name 'Py_UNICODE'
1:32
kFYatek commented 2 years ago

Seems reasonable, thanks!