-
Notifications
You must be signed in to change notification settings - Fork 299
Conversation
I'm generally in favor of cleaning up old libraries like this, but there is at least one prerequisite that needs to be addressed: spark-ec2 currently supports Python 2.6. I think that support should be dropped, but we need to agree on that and communicate it before we start using Python 2.7+ libraries like argparse. An alternative is to automatically download argparse like we do with boto. |
Thanks for the response! I'm comfortable with either option--would the latter just involve adding argparse to the external_libs dict if the python version is < 2.7? |
Yeah if we can handle this using external_libs I'd be fine with that. However I also think that with Spark 2.0 we get a chance to announce some breaking changes, so we could use that as an opportunity to stop supporting Python 2.6 |
I'd personally vote to drop Python 2.6 support, which would make future contributions to spark-ec2 just a bit easier to make. Python 2.6 was EOLed some years ago, so it's an easy deprecation IMO. |
Dropping support for Python 2.6 sounds good to me -- I just think its better to do it at a new version rather than in the middle of an existing branch. Here is one proposed working model: We can create |
Agreed. Dropping support for Python 2.6 with Spark 2.0 sounds good to me. |
Okay, so I'll leave this alone until either a |
FWIW it looks like Spark 2.0 is going to drop support for python 2.6. It looks like what you're planning here aligns with that, but you may want On Wed, Apr 20, 2016 at 12:57 PM, Daniel Haas [email protected]
|
I just created a |
Ok, sounds good. See #34 for the new version. |
See https://docs.python.org/2.7/library/argparse.html#upgrading-optparse-code for a checklist of things that should have been done (which I tried to follow), and http://stackoverflow.com/questions/3217673/why-use-argparse-rather-than-optparse for a discussion of why this is a good idea in general.