Code Monkey home page Code Monkey logo

Comments (4)

fpsunflower avatar fpsunflower commented on June 1, 2024

Ah apologies, I thought python was already being loaded in since it worked in my setup and in CI.

I'm guessing we just need an appropriately placed find_package(Python REQUIRED)?

Alternatively -- is there a more lightweight way of serializing that bytecode into a cpp?

from openshadinglanguage.

lgritz avatar lgritz commented on June 1, 2024

@tgrant-nv were you building with USE_PYTHON=OFF?

Python is needed for the python bindings to the oslquery library, so there is a find_package(Python) already happening at some point. And also python must be available in order to run the testsuite (which are all driving by python scripts).

from openshadinglanguage.

tgrant-nv avatar tgrant-nv commented on June 1, 2024

@fpsunflower, no problem at all. Yes, adding a find_package does work as you would expect. Perhaps the find_python macro in pythonutils.cmake can be made aware of the Python requirement when the tests or bitcode generation are enabled.

My previous minimal configuration was setting USE_PYTHON=OFF, though of course I have Python (2.7 and 3.8) installed. The testsuite runs fine without enabling Python in the build, probably because runtest.py is executable and has the proper shebang.

from openshadinglanguage.

fpsunflower avatar fpsunflower commented on June 1, 2024

Makes sense. For windows, it seems that using Python_EXECUTABLE is preferable, at least in my setup the one in the path that run when you just use python is the wrong one, while cmake finds the right one via the pybind dependency.

I have yet to get the testuite fully working on windows - but I'm wondering if we should use the same strategy there ... (since I don't believe the #! will be picked up).

from openshadinglanguage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.