robotpy / robotpy-cross-docker

Docker image used for compiling RobotPy for RoboRIO
1 stars 1 forks source link

Provide mechanism to unpack ipk in crossenv #2

Open virtuald opened 4 years ago

virtuald commented 4 years ago

Maybe a script or something?

There are two types of ipks, one is things we converted from python wheels, and others are native packages. I'd like to be able to unpack both types?

A good testcase for this is opencv and robotpy-cscore.

@DirtyJerz any chance you can take a look at this?

virtuald commented 4 years ago

Ok, so we have the right content in the crossenv -- but the next question then is where do we actually extract to? I'm not 100% sure where the crossenv compiler is going to be looking for installed things, but maybe we can provide an override?

virtuald commented 4 years ago

if the site-packages works, I can build the opkg manager from source in the image then it's just $ opkg install. If one of the venvs is needed, I can make a script in /usr/local/bin called "opkg-venv" which would unpack the ipk into the currently activated venv. if this is needed to install reqs then i'm guessing it needs to be installed into the venv.

The goal would be to install the prereqs in the crossenv from ipk, and be able to link against those libraries. A good testcase is building robotpy-cscore, which I imagine would be something like this:

Does that make more sense?

DirtyJerz commented 4 years ago

Yes. That should be doable. Just need to unzip the data.tar.gz to venv. I'll whip up a bash script tomorrow that will do this.