I’ve been getting more and more questions about using Python’s virtualenv with python27 and python33 collections from RHSCL, so I decided to write a very short tutorial about this topic. The “tl;dr” version is: everything works perfectly fine as long as you remember to enable the collection first.
What is Virtualenv
Citing Virtualenv official documentation: “virtualenv is a tool to create isolated Python environments”. In short, Virtualenv allows you to setup multiple runtime environments with different sets of Python extension packages on a single machine. Unlike Ruby’s RVM (Ruby Virtual Machine), it can’t install the language interpreter itself – just the extension libraries. Continue reading
Although most of Python enterprise applications still use Python 2 (e.g. Python 2.4 on RHEL 5 or Python 2.6 on RHEL 6), Python 3 has already become a mature variant and is worth considering. Why, you ask?
- Python 3 series is being actively developed by upstream, while Python 2 now only gets security fixes and bug fixes. Python 2.7 is the latest minor release of the 2.X series and there will be no Python 2.8. This is very important since Python 3 will be getting new modules (check the new asyncio module coming in 3.4, for example) and optimizations, while Python 2 will just stay where it is and will be abandoned sooner or later.
- Although the initial Python 3.0 release had worse performance than Python 2, upstream has kept improving it and Python 3.3 is comparable to Python 2.7 performance-wise.
- Python 3 is already adopted by major libraries and frameworks: Django since version 1.5, SciPy since 0.9.0, mod_wsgi since 3.0, …
Migrating projects to Python 3 takes some time, but with RHSCL it’s as easy as it can get. Read on to get information about changes in the language itself and about the suggested approach to using RHSCL as a migration helper.
DeveloperWeek 2014 Innovator awards have been announced and Red Hat has garnished two of them:
1. Platform-as-a-Service: Red Hat OpenShift
2. Coding Environments: Red Hat Software Collections
Thank you to all of you who voted!
And thank you to all of the Red Hatters that contributed to delivering these two offerings.
Note that coincidentally, Red Hat Software Collections eventually become OpenShift cartridges.
Also, Red Hat will be a sponsor at DeveloperWeek Conference + Expo, February 18-19, in San Francisco, so do stop by our booth to talk to our developers!
For more information about Red Hat OpenShift and other related topics, visit:
This is our new Red Hat Developer Newsletter that launched last month. Please register for this and receive a summary of important Red Hat developer news. The January issue will be going out soon!
We are excited to announce DevNation, an open source, polyglot conference for application developers and maintainers!