You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-07-10 12:19:27 -07:00
py-pip: add select groups for pip2 and pip3
This commit is contained in:
committed by
Chris Jones
parent
a6ec670797
commit
12df949b45
@@ -5,7 +5,7 @@ PortGroup select 1.0
|
||||
|
||||
name pip_select
|
||||
version 0.1
|
||||
revision 0
|
||||
revision 1
|
||||
categories python
|
||||
license BSD
|
||||
|
||||
@@ -26,8 +26,10 @@ distfiles
|
||||
use_configure no
|
||||
build {}
|
||||
destroot {
|
||||
select::install pip ${filespath}/base
|
||||
select::install pip ${filespath}/none
|
||||
foreach bin {pip pip2 pip3} {
|
||||
select::install $bin ${filespath}/$bin base
|
||||
select::install $bin ${filespath}/none
|
||||
}
|
||||
}
|
||||
|
||||
livecheck.type none
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
bin/pip2
|
||||
@@ -0,0 +1 @@
|
||||
bin/pip3
|
||||
@@ -6,7 +6,7 @@ PortGroup select 1.0
|
||||
|
||||
name py-pip
|
||||
version 19.1
|
||||
revision 0
|
||||
revision 1
|
||||
categories-append www
|
||||
platforms darwin
|
||||
license MIT
|
||||
@@ -74,15 +74,19 @@ if {${name} ne ${subport}} {
|
||||
delete ${destroot}${prefix}/bin/pip${python.branch}-${python.branch}
|
||||
}
|
||||
|
||||
select.group ${python.rootname}
|
||||
select.file ${filespath}/${python.rootname}${python.version}
|
||||
select.entries \
|
||||
[list ${python.rootname} ${python.rootname}${python.version}] \
|
||||
[list ${python.rootname}[string index ${python.version} 0] ${python.rootname}${python.version}]
|
||||
|
||||
notes "
|
||||
To make the Python ${python.branch} version of pip the one that is run\
|
||||
when you execute the commands without a version suffix, e.g. 'pip', run:
|
||||
|
||||
port select --set ${select.group} [file tail ${select.file}]
|
||||
"
|
||||
|
||||
foreach entry ${select.entries} {
|
||||
notes-append "port select --set $entry"
|
||||
}
|
||||
|
||||
livecheck.type none
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user