Skip to content

Commit

Permalink
pyside2 py310 update .pth file location
Browse files Browse the repository at this point in the history
Closes #469.

Signed-off-by: Chris <[email protected]>
  • Loading branch information
ipatch committed Dec 28, 2023
1 parent 8a47ce9 commit 35f56fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Formula/[email protected]_py310.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ def post_install
python_version = "3.10"

# Unlink the existing .pth file to avoid reinstall issues
pth_file = lib/"python#{python_version}/site-packages/pyside2.pth"
pth_file = lib/"python#{python_version}/pyside2.pth"
pth_file.unlink if pth_file.exist?

ohai "Creating .pth file for pyside2 module"
# write the .pth file to the site-packages directory
(lib/"python#{python_version}/site-packages/pyside2.pth").write <<~EOS
# write the .pth file to the parent dir of site-packages
(lib/"python#{python_version}/pyside2.pth").write <<~EOS
import site; site.addsitedir('#{lib}/python#{python_version}/site-packages/')
EOS
end
Expand Down

0 comments on commit 35f56fe

Please sign in to comment.