Skip to content

[circle-mlir/overlay] Check python version#15182

Closed
shs-park wants to merge 4 commits intoSamsung:masterfrom
shs-park:circle-mlir/prepare-venv-python_ver
Closed

[circle-mlir/overlay] Check python version#15182
shs-park wants to merge 4 commits intoSamsung:masterfrom
shs-park:circle-mlir/prepare-venv-python_ver

Conversation

@shs-park
Copy link
Copy Markdown
Contributor

This adds a minimum Python version constraint (3.10),
in the prepare-venv script.

ONE-DCO-1.0-Signed-off-by: Seungho Henry Park shs.park@samsung.com

This adds a minimum Python version constraint (3.10),
in the `prepare-venv` script.

ONE-DCO-1.0-Signed-off-by: Seungho Henry Park <shs.park@samsung.com>
ONE-DCO-1.0-Signed-off-by: Seungho Henry Park <shs.park@samsung.com>
ONE-DCO-1.0-Signed-off-by: Seungho Henry Park <shs.park@samsung.com>
@shs-park shs-park requested a review from a team April 17, 2025 09:24
@shs-park shs-park self-assigned this Apr 17, 2025
@shs-park shs-park added the PR/ready for review It is ready to review. Please review it. label Apr 17, 2025
@shs-park
Copy link
Copy Markdown
Contributor Author

shs-park commented Apr 17, 2025

for issue #15181

mhs4670go
mhs4670go previously approved these changes Apr 17, 2025
Copy link
Copy Markdown
Collaborator

@mhs4670go mhs4670go left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread circle-mlir/infra/overlay/prepare-venv Outdated
ragmani
ragmani previously approved these changes Apr 17, 2025
Copy link
Copy Markdown
Contributor

@ragmani ragmani left a comment

Choose a reason for hiding this comment

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

LGTM

@shs-park shs-park dismissed stale reviews from ragmani and mhs4670go via 8f7fb07 April 18, 2025 02:14
ONE-DCO-1.0-Signed-off-by: Seungho Henry Park <shs.park@samsung.com>
Co-authored-by: ragmani <ragmani0216@gmail.com>
@shs-park shs-park force-pushed the circle-mlir/prepare-venv-python_ver branch from 8f7fb07 to 5798bea Compare April 18, 2025 02:16
@shs-park shs-park requested review from a team and ragmani April 18, 2025 02:18
PYTHON_BIN=$(command -v python3)
fi

PYTHON_VER=$($PYTHON_BIN -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
Copy link
Copy Markdown
Contributor

@seanshpark seanshpark Apr 20, 2025

Choose a reason for hiding this comment

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

Can you plz check with find_package() ?

find_package(Python 3.10 EXACT COMPONENTS Interpreter QUIET)

you can refer compiler/common-artifacts/CMakeLists.txt file

  if(Python_VERSION VERSION_GREATER_EQUAL 3.12)
    message(STATUS "...")
    return()
  endif()
  if(Python_VERSION VERSION_LESS 3.8)
    message(STATUS "...")
    return()
  endif()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll create another PR to check the Python version through CMake.

@shs-park
Copy link
Copy Markdown
Contributor Author

Close this PR as another alternative PR #15193 is merged.

@shs-park shs-park closed this Apr 22, 2025
@shs-park shs-park deleted the circle-mlir/prepare-venv-python_ver branch April 22, 2025 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR/ready for review It is ready to review. Please review it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants