Skip to content

Th sitecustomize subdir#277

Merged
airportyh merged 2 commits intomainfrom
th-sitecustomize-subdir
Mar 4, 2024
Merged

Th sitecustomize subdir#277
airportyh merged 2 commits intomainfrom
th-sitecustomize-subdir

Conversation

@airportyh
Copy link
Collaborator

@airportyh airportyh commented Mar 4, 2024

Why

We found that the sitecustomize.py setup we added makes pyright hang when starting up, and we had failed lsp tests.
https://replit.slack.com/archives/C06KAKG35QS/p1709318856982249?thread_ts=1709316270.385049&cid=C06KAKG35QS

What changed

Moved sitecustomize.py to a subdirectory lib/python/site-packages to prevent pyright from trying to walk up and list the files in /nix/store

Test plan

Same as in #275

@airportyh airportyh force-pushed the th-sitecustomize-subdir branch from 450f1aa to 975f378 Compare March 4, 2024 15:47
@airportyh airportyh marked this pull request as ready for review March 4, 2024 15:48
@airportyh airportyh requested a review from a team as a code owner March 4, 2024 15:48
@airportyh airportyh requested review from ryantm and removed request for a team March 4, 2024 15:48
Copy link
Collaborator

@ryantm ryantm left a comment

Choose a reason for hiding this comment

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

The single file vs folder nix output distinction strikes again. Nice job debugging!

@airportyh
Copy link
Collaborator Author

The single file vs folder nix output distinction strikes again. Nice job debugging!

It was already a file in a folder, but this makes it go in more nested folders. I believe it would be a single file wo a destination specified.

@airportyh airportyh force-pushed the th-sitecustomize-subdir branch from 975f378 to 8219ca6 Compare March 4, 2024 15:56
@airportyh airportyh merged commit 18e2af4 into main Mar 4, 2024
@airportyh airportyh deleted the th-sitecustomize-subdir branch March 4, 2024 16:08
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