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

#193: Update Python Dependency to Python3 in CMakeLists.txt for EnvelopeProblemSOS #336

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

aks-lodhi07
Copy link

This pull request updates the CMakeLists.txt file for the EnvelopeProblemSOS example to use Python3 instead of Python2. Since Python2 is no longer officially supported and many systems default to Python3, this change is intended to make it easier for contributors to build and work with this project.

Changes Made:

🔹Updated CMakeLists.txt to find and link Python3 instead of Python2:
🔹Replaced find_package(Python2 COMPONENTS Development NumPy) with find_package(Python3
COMPONENTS Development NumPy REQUIRED).
🔹Replaced target_link_libraries(EnvelopeProblem Python2::Python Python2::NumPy) with
target_link_libraries(EnvelopeProblem Python3::Python Python3::NumPy).

Why this is needed:

1.Python2 has reached end-of-life, so this removes the need for contributors to set up legacy dependencies.
2.Compatibility: This update makes building the project simpler for anyone using modern systems.
3.Long-term maintenance: Staying up-to-date with Python3 ensures fewer issues going forward and makes it easier for new developers to jump in.

I’ve tested these changes to make sure the example builds successfully with Python3, and everything seems to be working smoothly.

Copy link
Author

@aks-lodhi07 aks-lodhi07 left a comment

Choose a reason for hiding this comment

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

approve my request please

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.

1 participant