Skip to content

[cmake][pyroot] Fix install directory on Windows#18990

Closed
bellenot wants to merge 3 commits intoroot-project:masterfrom
bellenot:fix-pythonpath-win
Closed

[cmake][pyroot] Fix install directory on Windows#18990
bellenot wants to merge 3 commits intoroot-project:masterfrom
bellenot:fix-pythonpath-win

Conversation

@bellenot
Copy link
Member

@bellenot bellenot commented Jun 7, 2025

No description provided.

@bellenot bellenot requested review from dpiparo and guitargeek June 7, 2025 15:44
@github-actions
Copy link

github-actions bot commented Jun 7, 2025

Test Results

    19 files      19 suites   3d 6h 50m 31s ⏱️
 2 805 tests  2 805 ✅ 0 💤 0 ❌
51 795 runs  51 795 ✅ 0 💤 0 ❌

Results for commit fd06b8f.

♻️ This comment has been updated with latest results.

@dpiparo
Copy link
Member

dpiparo commented Jun 7, 2025

Could a reference to this commit be added in the commit message and PR comment so that we remember what happened? 9bb2f50
@guitargeek is there a way in which we can preserve the nice improvements of github.com//pull/18969 and not break install on macos and win perhaps?

Copy link
Member

@dpiparo dpiparo left a comment

Choose a reason for hiding this comment

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

Let's wait and see whether a comprehensive solution (mac and win) can be found?

@guitargeek
Copy link
Contributor

We have zero test coverage for the install tree, so I guess any changes affect it will have these incremental fixups :(

But good that you fixed it for Windows now! I have not seen the problem on macOS though, do you have an example error message and build log?

I think eventually we really need some post install tests, like suggested by Stephan:
#17956

Just checking if some basic ROOT macro and import ROOT in Python works would have already helped here!

@dpiparo
Copy link
Member

dpiparo commented Jun 8, 2025

You really have a point. Something relatively inexpensive could be done for PRs too...

bellenot added 2 commits June 8, 2025 10:50
Fix wrong install directory introduced by commit root-project@9bb2f50
This made CPack failing with the following error message:
```
CMake Error at C:/ROOT-CI/build/bindings/pyroot/pythonizations/cmake\_install.cmake:75 (file):
    file cannot create directory: C:/Program Files (x86)/ROOT/bin/ROOT.
```
@bellenot bellenot closed this Jun 10, 2025
@bellenot bellenot deleted the fix-pythonpath-win branch June 10, 2025 07:25
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.

3 participants