Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add Conda environment setup and dependency installation script #2023

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bisqq wants to merge 1 commit into AcademySoftwareFoundation:main
base: main
Choose a base branch
Loading
from bisqq:conda-env-script

Conversation

@bisqq
Copy link

@bisqq bisqq commented Sep 25, 2025

Description

This script sets up the development environment by:

  • Creating a Conda environment
  • Installing all required dependencies

Enables contributors to quickly replicate a working environment.

Tests

Checklist:

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
  • My code follows the prevailing code style of this project. If I haven't
    already run clang-format v17 before submitting, I definitely will look at
    the CI test that runs clang-format and fix anything that it highlights as
    being nonconforming.

This script sets up the development environment by:
- Creating a Conda environment
- Installing all required dependencies
- Cloning the forked repository for development
Enables contributors to quickly replicate a working environment.
Signed-off-by: Alexandru Biscoveanu <alex.biscoveanu.gfx@gmail.com>
Copy link
Collaborator

lgritz commented Sep 25, 2025

Maybe put this script in the src/build-scripts directory?

bisqq reacted with thumbs up emoji

cmake \
llvmdev=20.1.8 clangdev clangxx_linux-64 libcxx \
python=3.12 numpy pybind11 \
openimageio=2.5 imath flex bison pugixml zlib
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's pretty old. Can we use at least OpenImageIO 3.0 by default?

bisqq reacted with thumbs up emoji
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like conda-forge has up to v2.5.18.0 sadly :/
https://anaconda.org/conda-forge/openimageio

Maybe mamba could be an alternative?
https://openmamba.org/en/rpms/base/python-OpenImageIO/aarch64/

Copy link
Author

@bisqq bisqq Sep 26, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What we could do is, download from the OpenImageIO repo binaries and install them directly

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The OpenImageIO repo does not currently provide pre-built binaries.

However, this OSL repo already has a src/build-scripts/build_openimageio.bash that can build OIIO from scratch.

Copy link
Collaborator

lgritz commented Sep 25, 2025

I think this could be pretty useful for people. Can you add some documentation to "INSTALL.md" explaining how to use it?

bisqq reacted with thumbs up emoji

@lgritz lgritz added the build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. label Oct 3, 2025
@@ -0,0 +1,51 @@
#!/bin/bash

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add the customary copyright notice here.

Suggested change
# Copyright Contributors to the Open Shading Language project.
# SPDX-License-Identifier: BSD-3-Clause
# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage

Copy link
Collaborator

lgritz commented Oct 13, 2025

I think that to wrap up this PR, we're primarily waiting for some modification to INSTALL.md instructions to explain briefly how and when to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lgritz lgritz lgritz left review comments

+1 more reviewer

@Rafapp Rafapp Rafapp left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. devdays25

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /