One liner for Compiling --target=/usr/bin/aarch64-linux-gnu-

Hello and I am Working on Python3.11.2 now…

I tried to apply some poetry as my build system with making a library.

I also tried to use the --target=/usr/bin/aarch64-linux-gnu- build liner to use on the build system under:

python3 -m pip install My_Lib.py 

like this:

python3 -m pip install My_Lib.py --target=/usr/bin/aarch64-linux-gnu-

But…I received errors in my venv.

I can use sudo but am greeted with an error that tells me to use a venv and that sudo will break my appliance building/library building.

What can I do to make sure my packages are not broken and that I can cross_compile for a target while building under python3.11.2 and pip?

Seth

P.S. Any recommendations are welcomed…

I would rather not build Python3 to suit my needs. Is there a workaround that actually works outside of building Python3 for specific uses?

Seth

Okay…

So, I figured it out (I Think).

git clone https://github.com/python/cpython
./configure --enable-optimizations
make CROSS_COMPILE=/usr/bin/aarch64-linux-gnu-

and then…

the same with Python3

I think…if anyone wants to chime in, please add additional details.

Seth