Skip to content

Commit

Permalink
Fix site-packages for Pythonista >= v3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Apr 24, 2023
1 parent 2549d26 commit 436aa80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/libdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import six


IN_PYTHONISTA = sys.executable.find('Pythonista') >= 0
IN_PYTHONISTA = "Pythonista" in sys.executable
ON_CI = "CI" in os.environ


Expand Down Expand Up @@ -38,7 +38,9 @@ def clipboard_set(s):
# -------------- pip ----------------------

if six.PY3:
SITE_PACKAGES_DIR_NAME = "site-packages-3"
SITE_PACKAGES_DIR_NAME = "site-packages"
if sys.version_info < (3, 10): # Pythonista < v3.4
SITE_PACKAGES_DIR_NAME += "-3"
else:
SITE_PACKAGES_DIR_NAME = "site-packages-2"
SITE_PACKAGES_DIR_NAME_6 = "site-packages"
Expand Down

0 comments on commit 436aa80

Please sign in to comment.