Skip to content

Commit

Permalink
devel/py-platformdirs: Unbreak after 2.5.2 update
Browse files Browse the repository at this point in the history
The upgrade of py-platformdirs to 2.5.2 breaks pylint (and most
certainly anything else that uses the module):

    lns 57 % pylint [...] lblcache.py
    [...]
    ModuleNotFoundError: No module named 'platformdirs'

Apply the tweak described here to adjust for the "src" subdir in
the distribution:

    https://stackoverflow.com/a/36012825/2994620

PR:		263639
Approved by:	koobs (portmgr blanket: runtime bugfix)
  • Loading branch information
Craig Leres authored and Craig Leres committed Apr 28, 2022
1 parent cced5c9 commit 24c7573
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions devel/py-platformdirs/Makefile
Expand Up @@ -2,6 +2,7 @@

PORTNAME= platformdirs
PORTVERSION= 2.5.2
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand Down
5 changes: 4 additions & 1 deletion devel/py-platformdirs/files/setup.py
Expand Up @@ -38,6 +38,9 @@
],
},
packages=[
'src.platformdirs',
'platformdirs',
],
package_dir={
'platformdirs': 'src/platformdirs'
},
)

0 comments on commit 24c7573

Please sign in to comment.