BrainsOnBoard / bob_robotics

Collection of code for interfacing with robot platforms + simulations and visualisation
GNU General Public License v2.0
2 stars 6 forks source link

Various build fixes #360

Closed alexdewar closed 5 months ago

alexdewar commented 7 months ago

This is based on #358, so that should be merged first.

Here are a smattering of random build fixes:

Various unit tests for infomax things are failing for me now, but I'm guessing that's because the data hasn't been regenerated since the algorithm was modified.

neworderofjamie commented 7 months ago

Thank you so much for this! I'd like to try out building the antworld on a couple of machine myself so will get back to you next week as the next few days are going to be a nightmare

alexdewar commented 7 months ago

Nw -- there's no rush.

neworderofjamie commented 7 months ago

I'm now having a go an building Python antworld and your fixes seem to have basically worked on both Windows and Linux. Only outstanding issue is:

Any thoughts on the best solution to this? As adding the git hash to the version does nothing to actually help with semantically versioning the Python module, personally I'd just get rid of it but hey 😄

alexdewar commented 7 months ago

Honestly, I'm not sure the best way to approach this. I basically hacked this in the first place so it's not surprising that it doesn't entirely work... I think I had some trouble trying to incorporate both Python and C++ code together using scikit-build, but that seems like a v common use case, so I'm sure there's a better way to do it than I did.

I think that realistically including the git hash in the version number is pretty pointless at this stage, given that the code base isn't changing a whole lot, so I'm def in favour of removing it if it makes things actually build properly.

neworderofjamie commented 7 months ago

Hah, I thought that was the whole purpose of scikit-build 😄 I think the working directory thing may be a wider setuptools issue as python-only packages also seem to get broken if you run the install from outside of the package directory. I'll get rid of build_common and the versioning and merge this though - thank you again for your help with this!

neworderofjamie commented 5 months ago

a python antworld wheel has been successfully installed on a windows machine not belonging to me! I think this can be counted as a success