<div>Hi all,</div><div><br></div><div>I agree that we should just target Python 2.7 for running cctbx programs and support Python &gt;= 2.5 for the installation process since we provide our own copy of Python in our installers. </div><div><br></div><div>We can work on removing checks and cleaning up code paths for specific versions of Python 2 when we migrate to Python 3.</div><div><br><div class="gmail_quote"><div>On Fri, Jun 9, 2017 at 4:08 PM Paul Adams &lt;<a href="mailto:pdadams@lbl.gov">pdadams@lbl.gov</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Graeme,<br>
<br>
  good points. I hope others in the group can weigh in, but I’m okay with limiting Python 2.5 to bootstrap and have everything else Python 2.7 compliant. I’m not sure what the implications, if any, for rest of the code base are, but given that we distribute with Python 2.7 then I guess things should be okay. We do make Phenix builds and run tests on several platforms with a system python 2.5.  Thoughts anyone else?<br>
<br>
  Cheers,<br>
        Paul<br>
<br>
&gt; On Jun 9, 2017, at 1:54 PM, <a href="mailto:graeme.winter@diamond.ac.uk" target="_blank">graeme.winter@diamond.ac.uk</a> wrote:<br>
&gt;<br>
&gt; Dear Paul,<br>
&gt;<br>
&gt; For bootstrap I completely appreciate the need for e.g. Python 2.5 or 2.6 compatibility - however does this then necessarily apply to the whole of cctbx and therefore by extension to dials etc. when the very first thing bootstrap does is install Python 2.7?<br>
&gt;<br>
&gt; The root of my question is trying to explain things to our new starter Nick (who initiated this thread) then coming to a halt as I realised I did not understand why some of these peculiarities were present - beyond &quot;historical reasons&quot;<br>
&gt;<br>
&gt; If we were to limit bootstrap.py to Python 2.5 compatibility and subsequently assume everything else is &quot;allowed&quot; 2.7 language level would that cause any problems? It may allow cleanup / removal of things which were from the future when added but are now part of the standard library. Do we even test on a python 2.5 machine?<br>
&gt;<br>
&gt; I&#39;d also like to acknowledge that I appreciate how important these choices are to Phenix, hence trying to understand fully<br>
&gt;<br>
&gt; Hope this makes sense, best wishes Graeme<br>
&gt;<br>
&gt; ________________________________________<br>
&gt; From: <a href="mailto:cctbxbb-bounces@phenix-online.org" target="_blank">cctbxbb-bounces@phenix-online.org</a> [<a href="mailto:cctbxbb-bounces@phenix-online.org" target="_blank">cctbxbb-bounces@phenix-online.org</a>] on behalf of Paul Adams [<a href="mailto:pdadams@lbl.gov" target="_blank">pdadams@lbl.gov</a>]<br>
&gt; Sent: 09 June 2017 16:58<br>
&gt; To: cctbx mailing list<br>
&gt; Subject: Re: [cctbxbb] Backwards compatibility; Python 2.3?<br>
&gt;<br>
&gt; Others can correct me, but I believe that we use Python &lt; 2.7 for building Phenix on several platforms because this is what the system Python is (needed to start the bootstrap). We have to support older platforms for compatibility reasons. Unfortunately, end users aren’t as likely to keep their os as up to date as developers would like.<br>
&gt;<br>
&gt;&gt; On Jun 9, 2017, at 5:43 AM, <a href="mailto:graeme.winter@diamond.ac.uk" target="_blank">graeme.winter@diamond.ac.uk</a> wrote:<br>
&gt;&gt;<br>
&gt;&gt; Folks,<br>
&gt;&gt;<br>
&gt;&gt; Does *anyone* actually use Python &lt; 2.7 with CCTBX for anything other than kicking off bootstrap?<br>
&gt;&gt;<br>
&gt;&gt; If not, then we could relax this back to using Python 2.7+ (which is a spritely 7 years old already)<br>
&gt;&gt;<br>
&gt;&gt; Thanks Graeme<br>
&gt;&gt;<br>
&gt;&gt; -----Original Message-----<br>
&gt;&gt; From: <a href="mailto:cctbxbb-bounces@phenix-online.org" target="_blank">cctbxbb-bounces@phenix-online.org</a> [mailto:<a href="mailto:cctbxbb-bounces@phenix-online.org" target="_blank">cctbxbb-bounces@phenix-online.org</a>] On Behalf Of Nicholas Devenish<br>
&gt;&gt; Sent: 08 June 2017 09:00<br>
&gt;&gt; To: cctbx mailing list<br>
&gt;&gt; Subject: Re: [cctbxbb] Backwards compatibility; Python 2.3?<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Jun 7, 2017 at 12:26 PM, Marcin Wojdyr &lt;<a href="mailto:wojdyr@gmail.com" target="_blank">wojdyr@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt; It makes sense to repeat this kind of question from time to time. At<br>
&gt;&gt;&gt; some point Python 2.5 won&#39;t be needed anymore.<br>
&gt;&gt;<br>
&gt;&gt; So, the whole codebase supports 2.5, or just the bootstrapping part?<br>
&gt;&gt; As far as I know, bootstrapping (and thus via 2.7) is the only documented way of installing? Are there any opportunities to switch over to bootstrapped python earlier in the process?<br>
&gt;&gt;<br>
&gt;&gt; If it is the whole package, are there any automated tests with 2.5?<br>
&gt;&gt; (If not, do we know that it&#39;s all still 2.5 compatible?)<br>
&gt;&gt;<br>
&gt;&gt; Nick<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; cctbxbb mailing list<br>
&gt;&gt; <a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a><br>
&gt;&gt; <a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.<br>
&gt;&gt; Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.<br>
&gt;&gt; Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.<br>
&gt;&gt; Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; cctbxbb mailing list<br>
&gt;&gt; <a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a><br>
&gt;&gt; <a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
&gt;<br>
&gt; --<br>
&gt; Paul Adams<br>
&gt; Division Director, Molecular Biophysics &amp; Integrated Bioimaging, Lawrence Berkeley Lab<br>
&gt; Division Deputy for Biosciences, Advanced Light Source, Lawrence Berkeley Lab<br>
&gt; Adjunct Professor, Department of Bioengineering, U.C. Berkeley<br>
&gt; Vice President for Technology, the Joint BioEnergy Institute<br>
&gt; Laboratory Research Manager, ENIGMA Science Focus Area<br>
&gt;<br>
&gt; Building 33, Room 347<br>
&gt; Building 80, Room 247<br>
&gt; Building 978, Room 4126<br>
&gt; Tel: 1-510-486-4225, Fax: 1-510-486-5909<br>
&gt; <a href="http://cci.lbl.gov/paul" rel="noreferrer" target="_blank">http://cci.lbl.gov/paul</a><br>
&gt;<br>
&gt; Lawrence Berkeley Laboratory<br>
&gt; 1 Cyclotron Road<br>
&gt; BLDG 33R0345<br>
&gt; Berkeley, CA 94720, USA.<br>
&gt;<br>
&gt; Executive Assistant: Louise Benvenue [ <a href="mailto:LBenvenue@lbl.gov" target="_blank">LBenvenue@lbl.gov</a> ][ 1-510-495-2506 ]<br>
&gt; --<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; cctbxbb mailing list<br>
&gt; <a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a><br>
&gt; <a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; cctbxbb mailing list<br>
&gt; <a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a><br>
&gt; <a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
<br>
--<br>
Paul Adams<br>
Division Director, Molecular Biophysics &amp; Integrated Bioimaging, Lawrence Berkeley Lab<br>
Division Deputy for Biosciences, Advanced Light Source, Lawrence Berkeley Lab<br>
Adjunct Professor, Department of Bioengineering, U.C. Berkeley<br>
Vice President for Technology, the Joint BioEnergy Institute<br>
Laboratory Research Manager, ENIGMA Science Focus Area<br>
<br>
Building 33, Room 347<br>
Building 80, Room 247<br>
Building 978, Room 4126<br>
Tel: 1-510-486-4225, Fax: 1-510-486-5909<br>
<a href="http://cci.lbl.gov/paul" rel="noreferrer" target="_blank">http://cci.lbl.gov/paul</a><br>
<br>
Lawrence Berkeley Laboratory<br>
1 Cyclotron Road<br>
BLDG 33R0345<br>
Berkeley, CA 94720, USA.<br>
<br>
Executive Assistant: Louise Benvenue [ <a href="mailto:LBenvenue@lbl.gov" target="_blank">LBenvenue@lbl.gov</a> ][ 1-510-495-2506 ]<br>
--<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" rel="noreferrer" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
</blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div>--</div><div><span style="font-size:12.8000001907349px">Billy K. Poon</span><br></div></div><div>Research Scientist, Molecular Biophysics and Integrated Bioimaging</div><div>Lawrence Berkeley National Laboratory</div><div>1 Cyclotron Road, M/S 33R0345</div><div>Berkeley, CA 94720</div><div>Tel: (510) 486-5709</div><div>Fax: (510) 486-5909</div><div>Web: <a href="https://phenix-online.org" target="_blank">https://phenix-online.org</a></div></div></div></div></div></div></div></div></div></div></div></div></div>