Twon / Morpheus

Work in progress: Cross Platform Game Engine
MIT License
13 stars 1 forks source link

CMake Virtual Environment Helpers Should Add Clean Step #120

Open Twon opened 1 year ago

Twon commented 1 year ago

The current (cmake Virtual Environment helper)[https://github.com/Twon/Morpheus/blob/main/cmake/virtualenv.cmake] does not correctly clean intermediate files in the build directory. Investigate how to correctly track these dependencies.

Twon commented 1 year ago

It looks like Pip 22.2 onwards has --dry-run and --report options which could be used together to calculate the dependencies that would be installed (via writing a report). This information could then be used to gather the dependencies and pass them into the add_custom_command so the CMake tracks them correctly: https://stackoverflow.com/questions/29531094/how-to-make-pip-dry-run

However, we need to be able to check the version of pip installed.

Twon commented 1 year ago

Above only provide package-level information. To see individual package files you can use pip show -f <package> once installed bu this is too late: https://serverfault.com/questions/153843/how-do-i-list-the-files-associated-with-a-python-package-installed-using-pip-or