Skip to content
Permalink
Browse files

py-urlwatch: use versioned 2to3-3.x as installed by python3x

  • Loading branch information
dbevans committed Apr 11, 2018
1 parent db0bb2c commit 5f0f212baa6fb354c5b7328a242c64f5e57ce80f
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/py-urlwatch/Portfile
@@ -37,6 +37,8 @@ if {${name} ne ${subport}} {

pre-configure {
if { ${python.version} >= 30 } {
# convert to python3 using versioned 2to3-3.x as installed by python3x
reinplace "s|^2to3|${prefix}/bin/2to3-${python.branch}|" ${worksrcpath}/convert-to-python3.sh
system "cd ${worksrcpath} && ${worksrcpath}/convert-to-python3.sh"
}
}

0 comments on commit 5f0f212

Please sign in to comment.
You can’t perform that action at this time.