Comments (4)
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.
@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.
@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.
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)
- error: ‘const class llvm::Triple’ has no member named ‘isPS4CPU’; did you mean ‘isPS4’? HOT 1
- Executing shader using fmod() sometimes crashes on windows HOT 7
- Read after free in TypeSpec::struct_list()
- Couldn't build against LLVM 15 HOT 1
- icx CI test stopped working HOT 2
- Fails to build with OIIO 2.4.4.1 + FMT 9.1.0
- Error compiling HOT 9
- Varying Closure Keyword Parameters Not Being Correctly Evaluated During Batched Execution HOT 1
- asymmetry for userdata vs attributes with ShadingSystemImpl::getattribute
- How can you help out
- Wiki page HOT 2
- testsuites that build subprojects ignore the options top level cmake was invoked with
- Qt6
- Unresolved external symbols when building with batch mode on Windows
- Intermittent crash in LLVM_Util::getPointerToFunction(llvm::Function* func) HOT 14
- Update to LLVM 18.0.0
- Crash assigning boolean expression to `int` in batched mode HOT 9
- Fails to build with OIIO 2.4.14.0 + FMT 10.0.0 HOT 4
- Batched shading crashes in `pointcloud_search()` HOT 4
- Build error on MSVC with Partio HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openshadinglanguage.