Re: [152558] trunk/dports/sysutils/python_select/Portfile

2016-09-12 Thread Lawrence Velázquez
> On Sep 12, 2016, at 4:01 PM, Ryan Schmidt  wrote:
> 
> On Sep 12, 2016, at 2:54 PM, Ryan Schmidt wrote:
> 
>> On Sep 12, 2016, at 2:53 PM, Lawrence Velázquez wrote:
>> 
>>> Does anyone know whether the python26-apple.mtln and python27-apple.mtln 
>>> schemes still apply to Sierra?
>> 
>> How can I verify that's the case? Just check that each file listed in those 
>> files exists?
> 
> Because they do:
> 
> 
> 
> $ sw_vers
> ProductName:  Mac OS X
> ProductVersion:   10.12
> BuildVersion: 16A320
> $ grep -hv ^-$ $(port dir python_select)/files/python2{6,7}-apple.mtln | 
> xargs ls -l
> lrwxr-xr-x  1 root  wheel 74 Sep  8 23:49 /usr/bin/2to3-2.7 -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/2to3-2.7
> lrwxr-xr-x  1 root  wheel 73 Sep  8 23:49 /usr/bin/2to32.6 -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/2to32.6
> lrwxr-xr-x  1 root  wheel 73 Sep  8 23:49 /usr/bin/idle2.6 -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/idle2.6
> lrwxr-xr-x  1 root  wheel 73 Sep  8 23:49 /usr/bin/idle2.7 -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/idle2.7
> lrwxr-xr-x  1 root  wheel 74 Sep  8 23:49 /usr/bin/pydoc2.6 -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pydoc2.6
> lrwxr-xr-x  1 root  wheel 74 Sep  8 23:49 /usr/bin/pydoc2.7 -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pydoc2.7
> lrwxr-xr-x  1 root  wheel 75 Sep  8 23:49 /usr/bin/python2.6 -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
> lrwxr-xr-x  1 root  wheel 82 Sep  8 23:49 /usr/bin/python2.6-config -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config
> lrwxr-xr-x  1 root  wheel 75 Sep  8 23:49 /usr/bin/python2.7 -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
> lrwxr-xr-x  1 root  wheel 82 Sep  8 23:49 /usr/bin/python2.7-config -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
> lrwxr-xr-x  1 root  wheel 76 Sep  8 23:49 /usr/bin/pythonw2.6 -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pythonw2.6
> lrwxr-xr-x  1 root  wheel 76 Sep  8 23:49 /usr/bin/pythonw2.7 -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
> lrwxr-xr-x  1 root  wheel 77 Sep  8 23:49 /usr/bin/smtpd2.6.py -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/smtpd2.6.py
> lrwxr-xr-x  1 root  wheel 77 Sep  8 23:49 /usr/bin/smtpd2.7.py -> 
> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/smtpd2.7.py
> -rw-r--r--  1 root  wheel  15329 Jul 30 20:35 /usr/share/man/man1/python2.6.1
> -rw-r--r--  1 root  wheel  15825 Jul 30 20:36 /usr/share/man/man1/python2.7.1

I think that's fine then. I'll revbump.

vq
___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev


Re: [152558] trunk/dports/sysutils/python_select/Portfile

2016-09-12 Thread Ryan Schmidt
On Sep 12, 2016, at 2:54 PM, Ryan Schmidt wrote:

> On Sep 12, 2016, at 2:53 PM, Lawrence Velázquez wrote:
> 
>> Does anyone know whether the python26-apple.mtln and python27-apple.mtln 
>> schemes still apply to Sierra?
> 
> How can I verify that's the case? Just check that each file listed in those 
> files exists?

Because they do:



$ sw_vers
ProductName:Mac OS X
ProductVersion: 10.12
BuildVersion:   16A320
$ grep -hv ^-$ $(port dir python_select)/files/python2{6,7}-apple.mtln | xargs 
ls -l
lrwxr-xr-x  1 root  wheel 74 Sep  8 23:49 /usr/bin/2to3-2.7 -> 
../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/2to3-2.7
lrwxr-xr-x  1 root  wheel 73 Sep  8 23:49 /usr/bin/2to32.6 -> 
../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/2to32.6
lrwxr-xr-x  1 root  wheel 73 Sep  8 23:49 /usr/bin/idle2.6 -> 
../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/idle2.6
lrwxr-xr-x  1 root  wheel 73 Sep  8 23:49 /usr/bin/idle2.7 -> 
../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/idle2.7
lrwxr-xr-x  1 root  wheel 74 Sep  8 23:49 /usr/bin/pydoc2.6 -> 
../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pydoc2.6
lrwxr-xr-x  1 root  wheel 74 Sep  8 23:49 /usr/bin/pydoc2.7 -> 
../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pydoc2.7
lrwxr-xr-x  1 root  wheel 75 Sep  8 23:49 /usr/bin/python2.6 -> 
../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
lrwxr-xr-x  1 root  wheel 82 Sep  8 23:49 /usr/bin/python2.6-config -> 
../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config
lrwxr-xr-x  1 root  wheel 75 Sep  8 23:49 /usr/bin/python2.7 -> 
../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x  1 root  wheel 82 Sep  8 23:49 /usr/bin/python2.7-config -> 
../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
lrwxr-xr-x  1 root  wheel 76 Sep  8 23:49 /usr/bin/pythonw2.6 -> 
../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pythonw2.6
lrwxr-xr-x  1 root  wheel 76 Sep  8 23:49 /usr/bin/pythonw2.7 -> 
../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
lrwxr-xr-x  1 root  wheel 77 Sep  8 23:49 /usr/bin/smtpd2.6.py -> 
../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/smtpd2.6.py
lrwxr-xr-x  1 root  wheel 77 Sep  8 23:49 /usr/bin/smtpd2.7.py -> 
../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/smtpd2.7.py
-rw-r--r--  1 root  wheel  15329 Jul 30 20:35 /usr/share/man/man1/python2.6.1
-rw-r--r--  1 root  wheel  15825 Jul 30 20:36 /usr/share/man/man1/python2.7.1

___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev


Re: [152558] trunk/dports/sysutils/python_select/Portfile

2016-09-12 Thread Ryan Schmidt

> On Sep 12, 2016, at 2:53 PM, Lawrence Velázquez  wrote:
> 
> Does anyone know whether the python26-apple.mtln and python27-apple.mtln 
> schemes still apply to Sierra?

How can I verify that's the case? Just check that each file listed in those 
files exists?

___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev


Re: [152558] trunk/dports/sysutils/python_select/Portfile

2016-09-12 Thread Lawrence Velázquez
> On Sep 12, 2016, at 3:45 PM, Ryan Schmidt  wrote:
> 
> This takes care of adding the necessary bits for Sierra, yes?
> 
> Do we need to revbump for any early adopters who already had this port 
> installed?

Hm, that hadn't occurred to me; I was just backporting a change I had made 
earlier for python2_select. I guess Sierra users who had already installed 
python_select currently have no entries for the system Python, so we should 
indeed revbump.

Does anyone know whether the python26-apple.mtln and python27-apple.mtln 
schemes still apply to Sierra?

vq
___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev


Re: [152558] trunk/dports/sysutils/python_select/Portfile

2016-09-12 Thread Ryan Schmidt

> On Sep 12, 2016, at 11:22 AM, lar...@macports.org wrote:
> 
> Revision
> 152558
> Author
> lar...@macports.org
> Date
> 2016-09-12 09:22:25 -0700 (Mon, 12 Sep 2016)
> Log Message
> 
> python_select: Refactor to reduce repetition
> Modified Paths
> 
>   • trunk/dports/sysutils/python_select/Portfile
> Diff
> 
> Modified: trunk/dports/sysutils/python_select/Portfile (152557 => 152558)
> 
> --- trunk/dports/sysutils/python_select/Portfile  2016-09-12 15:41:20 UTC 
> (rev 152557)
> +++ trunk/dports/sysutils/python_select/Portfile  2016-09-12 16:22:25 UTC 
> (rev 152558)
> 
> @@ -30,48 +30,34 @@
> 
>  #   select.file ${filespath}/python[string map {. {}} ${branch}]
> 
>  
> 
>  # install all files
> 
> -select.entries  {python base} \
> -{python none}
> 
> +select.entries  {python base} \
> +{python none}
> 
>  
> 
> -platform darwin 8 {
> -select.entries-append   {python python23-apple}
> 
> +platform darwin {
> +set apple_pythons [
> +if {${os.major} == 8} {
> +list python23-apple
> +} elseif {${os.major} == 9} {
> +list python25-apple
> +} elseif {${os.major} == 10} {
> +list python25-apple \
> + python26-apple
> +} elseif {${os.major} == 11} {
> +list python25-apple \
> + python26-apple \
> + python27-apple
> +} elseif {${os.major} == 12 || ${os.major} == 13} {
> +list {python25-apple.mtln python25-apple} \
> + {python26-apple.mtln python26-apple} \
> + {python27-apple.mtln python27-apple}
> +} elseif {${os.major} >= 14} {
> +list {python26-apple.mtln python26-apple} \
> + {python27-apple.mtln python27-apple}
> +}
> +]
> +foreach python $apple_pythons {
> +select.entries-append [list python2 {*}$python]
> +}
> 
>  }

This takes care of adding the necessary bits for Sierra, yes?

Do we need to revbump for any early adopters who already had this port 
installed?


___
macports-dev mailing list
macports-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev