Skip to content
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

[shortfin] Add dev_me.py script to standardize my development process. #335

Merged
merged 2 commits into from
Oct 26, 2024

Conversation

stellaraccident
Copy link
Contributor

No description provided.

@stellaraccident
Copy link
Contributor Author

Will land and iterate as it starts to meet my needs.

@stellaraccident stellaraccident merged commit 53820cd into main Oct 26, 2024
8 checks passed
@stellaraccident stellaraccident deleted the shortfin_dev_me branch October 26, 2024 00:10
Comment on lines +44 to +46
CMAKE_REQUIRED_VERSION = Version("3.29")
PYTHON_REQUIRED_VERSION = Version("3.12")
CLANG_REQUIRED_VERSION = Version("16")
Copy link
Member

Choose a reason for hiding this comment

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

Are these minimum versions, or exact versions?

Comment on lines +133 to +138
if self.clang_exe and self.clang_version < CLANG_REQUIRED_VERSION:
print(f"ERROR: clang version too old: {self.clang_exe}")
print(f" REQUIRED: {CLANG_REQUIRED_VERSION}, Found {self.clang_version}")
elif not self.clang_exe:
print(f"WARNING: Building the project with clang is highly recommended")
print(f" (pass --clang= to select clang)")
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice to support MSVC on Windows here too, without warnings.

actual_env_vars = dict(os.environ)
actual_env_vars.update(env_vars)
subprocess.check_call(setup_args, cwd=env_info.this_dir, env=actual_env_vars)
print("You are now DEV'd!")
Copy link
Member

Choose a reason for hiding this comment

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

🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants