r/Python • u/desmoulinmichel • Sep 15 '15
Ask microsoft to include Python in Windows by default
https://windows.uservoice.com/forums/265757-windows-feature-suggestions/suggestions/6693586-ship-python-3-and-python-2-with-windows-1022
Sep 15 '15
No company in their right mind would do that because they end up having to support it. It's not difficult to download and install.
13
u/desmoulinmichel Sep 15 '15
So I'm guessing Apple and Fedora and Canonical must be crazy.
But yes, it IS difficult to download and install. For non dev People. Or for sysadmin needing to script 100 machines.
4
u/targetx Sep 15 '15
If you're managing such amounts of machines I'd hope you have some provisioning tool in place... But yeah it would be easy.
-3
u/desmoulinmichel Sep 15 '15
Of course you have tools, but you still need approval, documentation and supports.
Plus, having a commong solution removes many debates, meetings, arguments and you can just get to work.
8
u/gospelwut Sep 16 '15
https://www.python.org/downloads/windows/
2.7.x has MSI installers
3.x executable seems to support /quiet
I fail to see what is hard about that. Given:
Proper imaging/deployment/orchestration -- baseline VM images or .wim files via MDT or SCCM
Scripting at scale with WinRM (Ps-Remoting) or heaven forbid PsExec (ADMIN$)
Worst case scenario, something like PDQ Deploy
All I hear is I don't know how to administrate windows.
3
Sep 16 '15
In all 3 cases it was included because a few default included apps in each OS used Python not because they wanted to add it in for fun. Also I think newer versions of OSX have stopped shipping with it by default. Windows has it's own languages to push and did not write any of the default software in Python.
22
u/leynosncs Sep 15 '15
I think I'd rather they included a compiler (or at least made one trivial to install). Python (along with a plethora of other dynamic languages) become much easier to use when their is an easily accessible C compiler available. For Python 2.7, there is an easy to install Visual C bundle available, which makes life a lot simpler. For Python 3.4, etc, life is not so easy and the developer is left hunting for the relevant pre-compiled C extensions (often only found on third party sites).
-4
u/desmoulinmichel Sep 15 '15
That would not make cross plateform scripting any easier.
5
u/leynosncs Sep 15 '15
For me, the biggest barrier I have to cross platform scriping is usually in the form of a C extension like pycrypto or PyYAML. Python itself is straightforward, as .msi installers are available from a trusted source.
→ More replies (2)
33
u/the_hoser Sep 15 '15
Why stop there? Let's provide a Ruby interpreter as well! Maybe we can go a little wild and include TCL!
Why should Microsoft provide an interpreter for your favorite language?
I'd rather they just include a decent C compiler and some standards-compliant build tools. This would solve more problems than bundling a version of Python with the OS would ever solve.
4
u/desmoulinmichel Sep 15 '15
It's not because it's my favorite language.
It's because :
Mac and Linux already have it pre-installed and us them a lot. This proves both robustness and usability.
Python is the only language that is good at scripting AND many other things. Usually you have either good scripting OR other things. E.G: ruby has a great ecosystem in the Web, but is less competitive in other area
C-compiler is an entire different issue. Embedding python doesn't target primarily app dev, but scripters, so they can share the script with non dev, or deploy it on a lot of machines on an heterogeneous park.
5
u/the_hoser Sep 15 '15 edited Sep 15 '15
Mac and Linux already have it pre-installed and us them a lot. This proves both robustness and usability.
Faulty assumption. I administrate at least one Linux system (that I can recall) that does not have Python installed. I agree that it is common for Linux distributions to have a Python interpreter installed, but it's not all roses and candy. RedHat is using python 3.1 for craps sake.
Python is the only language that is good at scripting AND many other things. Usually you have either good scripting OR other things. E.G: ruby has a great ecosystem in the Web, but is less competitive in other area
That's just like, your opinion man. Don't get me wrong, I love Python, too, but I know a number of Ruby programmers that would say exactly the same thing you just said, and they would be no less right or wrong than you are.
C-compiler is an entire different issue.
It is the issue. Since there is no standardized way to build software on windows (vs OS X and Linux) then it is difficult to deploy python and python plugins to windows.
Embedding python doesn't target primarily app dev, but scripters, so they can share the script with non dev, or deploy it on a lot of machines on an heterogeneous park.
Then why not Bash, or some simple implementation of a Unix shell, existing as a subset of Bash? If all you want is heterogeneous scripting, let's go with the path of least resistance.
EDIT: Also, I just realized that, if Microsoft were to produce a *sh implementation, they might actually be forced to fix their faulty shell handling! Win-win for everybody!
7
u/net_goblin Sep 15 '15
It is the issue. Since there is no standardized way to build software on windows (vs OS X and Linux) then it is difficult to deploy python and python plugins to windows.
Since when is the way to build software standardized on OS X and Linux? Plain GNU make, autotools + GNU make, CMake + GNU make, CMake + Ninja, scons, ... the possibilities are endless. They only don't break between compiler versions as often as Visual Studio projects. But calling it standardized is more than bold.
2
u/the_hoser Sep 15 '15
You do have a fair point. I concede that it's not Microsoft's responsibility to do it the way Linux/OS X do it.
In that case, I wish only that they would standardize on a set of build tools and include them with the operating system.
-2
u/desmoulinmichel Sep 15 '15
Faulty assumption. I administrate at least one Linux system (that I can recall) that does not have Python installed. I agree that it is common for Linux distributions to have a Python interpreter installed, but it's not all roses and candy.
Fedora and Ubuntu represent 90% of the market. You can always find exception for verything. The only thing it leads is to do nothing.
RedHat is using python 3.1 for craps sake.
It's enough.
That's just like, your opinion man.
No it's not. It's not that there no other languages capable of such. it's just that their ecosystem didn't develop in that direction. It's not a technical thing, it's a social thing. You can do data analysis with Ruby, but they use the banks and the scientits are using Python. And you can use Ruby for scripting, but admin are using Python.
It is the issue.
It is AN issue. And is has nothing to do with cross plateform scripting.
Embedding python doesn't target primarily app dev, but scripters, so they can share the script with non dev, or deploy it on a lot of machines on an heterogeneous park.
Then why not Bash, or some simple implementation of a Unix shell, existing as a subset of Bash? If all you want is heterogeneous scripting, let's go with the path of least resistance.
Because :
MS is involved in Python, not bash.
Python can do more than bash.
bash is file oriented (unix philosophy) while python is general purpose oriented.
It's not a matter of preference.
I do love Python.
But it's objectivelly the best tool for this situation.
There is a reason you find it everywhere : web dev, finance, science, 3D, scripting, prototyping, geospatial, glue... It's very versatile and easy to use, and super portable, while not being focus on a specific use.
3
u/iamhaz Sep 15 '15
Fedora and Ubuntu represent 90% of the market. You can always find exception for verything. The only thing it leads is to do nothing.
Got a source on that?
That's just like, your opinion man.
No it's not. It's not that there no other languages capable of such. it's just that their ecosystem didn't develop in that direction. It's not a technical thing, it's a social thing. You can do data analysis with Ruby, but they use the banks and the scientits are using Python. And you can use Ruby for scripting, but admin are using Python.
Admins are using the right tool for the right job, that may or may not be Python, it's often Bash, or even Perl or <insert obscure language of the week here>. Python isn't a special snowflake in this regard.
It is the issue. It is AN issue. And is has nothing to do with cross plateform scripting.
Embedding python doesn't target primarily app dev, but scripters, so they can share the script with non dev, or deploy it on a lot of machines on an heterogeneous park.
Python can do more than bash.
Bash can do just as much as Python.
bash is file oriented (unix philosophy) while python is general purpose oriented.
Wat.
It's not a matter of preference.
It's pretty clear it is a matter of preference to you. Nothing wrong with that, but don't pretend it isn't.
I do love Python.
We can see that :)
But it's objectivelly the best tool for this situation.
Nothing about this is objective.
There is a reason you find it everywhere : web dev, finance, science, 3D, scripting, prototyping, geospatial, glue... It's very versatile and easy to use, and super portable, while not being focus on a specific use.
Same could be said about any language if you try hard enough.
→ More replies (2)0
u/the_hoser Sep 15 '15
And any Ruby fanboy would sling similar sounding arguments about why Ruby is the best tool for this situation.
Fedora and Ubuntu represent 90% of the market. You can always find exception for verything. The only thing it leads is to do nothing.
You're absolutely right there. I was merely pointing out that it's not as ironclad a bundle as you seem to be convinced it is.
No it's not. It's not that there no other languages capable of such. it's just that their ecosystem didn't develop in that direction. It's not a technical thing, it's a social thing. You can do data analysis with Ruby, but they use the banks and the scientits are using Python. And you can use Ruby for scripting, but admin are using Python.
We're talking about scripting here. Anything that can open a subshell qualifies.
The Rubyist would argue that the scientific stuff isn't as important as the web stuff. They would point out that their standard VM routinely outperforms the Python VM. They would also point out that OS X is bundled with Ruby, and that anybody using Linux could easily install Ruby.
I'm not advocating Ruby, here. I'm merely pointing out that your position is one of opinion and preference. There's nothing objective about it.
It is AN issue. And is has nothing to do with cross plateform scripting.
And deploying for Python on Windows will remain just as heinous as it is today. Using a C extension? You're screwed. This is a bigger problem than anybody's scripting concerns would ever be. It's easy to throw together two scripts. It's a huge pain to deploy real Python applications, and none of this will help.
MS is involved in Python, not bash.
Microsoft has provided a shell implementation in the past. They can do it again.
Python can do more than bash.
I thought that you were worried about scripting?
bash is file oriented (unix philosophy) while python is general purpose oriented.
Being file-oriented makes it really ideal for the kinds of scripting many administrators do. I realize that Windows has some more complicated constructs, and the scripting of those constructs would be a little... less natural in Bash, but I don't see how it'd be any more natural in Python. A command to make DCOM calls would be just as easy to use as a library to make DCOM calls.
It's not a matter of preference.
Yes it is.
But it's objectivelly the best tool for this situation.
No, it isn't. There's nothing objective about it.
There is a reason you find it everywhere : web dev, finance, science, 3D, scripting, prototyping, geospatial, glue... It's very versatile and easy to use, and super portable, while not being focus on a specific use.
I agree. It's a fantastic language. And as a matter of preference, it's a popular one.
Java is more popular, though. It's used for almost all of those things, and more. If popularity was the metric we're going for here, why doesn't Microsoft bundle Java instead?
Right... they tried that. They also modified it beyond recognition, creating a schism in the Java community. At least Guido isn't as evil and lawsuit-happy as Sun was.
1
u/desmoulinmichel Sep 15 '15
And any Ruby fanboy would sling similar sounding arguments about why Ruby is the best tool for this situation.
They could not as Ruby is not installed by default on Linux. The whole thing here is about default installation.
The Rubyist would argue that the scientific stuff isn't as important as the web stuff.
For which Python works well (you know this youtube website is coded in Python...). So Python is popular in the Web AND outside of the web.
Most importantly, MS has invested in Python, Linux distro has invested in Python. Banks have invested in Python. Google have invested in Python. Not Ruby. Python.
They would point out that their standard VM routinely outperforms the Python VM.
Which for scripting has no importance.
Microsoft has provided a shell implementation in the past. They can do it again.
It's a lot more work than installing Python by default, which does more than bash.
I thought that you were worried about scripting?
Additional bonus doesn't hurt. Python is fantastic at scripting. The plus is, it's not JUST fanstastic at scripting.
No, it isn't. There's nothing objective about it.
What's not objective about :
people use it a lot;
it does the job;
it's installed on most competitors;
?
why doesn't Microsoft bundle Java instead?
Because it's not a scripting language. Because it's not installed on Mac and Linux already.
They also modified it beyond recognition, creating a schism in the Java community.
You don't need to modify Python to make it work. You can just ship it the way it is. Plus MS already has a foot in the Python word. They are already doing it right.
2
u/the_hoser Sep 15 '15
They could not as Ruby is not installed by default on Linux. The whole thing here is about default installation.
Any Linux admin worth their salt can install Ruby in 10 seconds. If you're worried about clueless end-users, don't. There are none in the Linux world.
For which Python works well (you know this youtube website is coded in Python...). So Python is popular in the Web AND outside of the web.
Ruby is, in my experience, far more popular than Python for web development. Python does a good job, for sure, but the culture is with Ruby on this one.
Most importantly, MS has invested in Python, Linux distro has invested in Python. Banks have invested in Python. Google have invested in Python. Not Ruby. Python.
Twitter invested in Ruby, Github invested in Ruby, Hulu invested in Ruby...
We can do this all day.
What's not objective about :
people use it a lot;
it does the job;
it's installed on most competitors;
?
Moot points. The same could be said for Java or Flash. Bash is arguably even more popular.
You don't need to modify Python to make it work. You can just ship it the way it is. Plus MS already has a foot in the Python word. They are already doing it right.
And here's the crux of the proplem: They will modify Python. What's worse, they won't fix the core problems of developing and distributing applications written in Python on windows. Bundling Python would actually have the potential to make it worse. It's already bad on OS X. People shy away from Python 3 because their laptop doesn't have it by default.
And the proposed solution still doesn't solve the binary module problem. If you dare write something in a later version of Python that Microsoft deigns to provide, then you still have the same problems that we have right now. You still have issues with binary modules.
You're not making windows better with this. You're making Python worse.
→ More replies (12)0
u/desmoulinmichel Sep 15 '15
And... come on... you want this too !
:p
2
u/the_hoser Sep 15 '15
NO! NO NO NO NO NO! I do NOT want this!
It would literally be the worst thing to happen to Python in Windows. It would co-opt the definition of "Python" to be "the version on Windows" all of Python software would be written to conform to their version, with whatever modifications they decide to make.
The best thing that Microsoft could do for Python is to provide a standards-compliant C compiler and build environment. Beyond that, their contributions to make Python work better in Windows are enough.
→ More replies (2)13
u/theywouldnotstand Sep 15 '15 edited Sep 15 '15
Arch linux user here. Had to install python manually (as is true with most software on arch.)
The key difference here, is that most Linux distributions have python packages that are easy to install and update using tools included in the distro. Windows does not do this, so it's up to the user or administrator to install and maintain.
It would be nice if microsoft maintained a python package that is optional to install through windows update, but I don't think it should be automatically installed. Most windows users wouldn't use it.
4
u/port53 relative noob Sep 15 '15
For 99% of Windows users that would just be huge amounts of bloat.
2
u/the_hoser Sep 15 '15
You're right! But you seem to be missing the point of my statement. I consider adding Python to also be the same kind of bloat.
Or are you referring to the C compiler?
1
u/BobHogan Sep 16 '15
It isn't about Python being someone's favorite language. Python is rapidly rising to the top of the list of most desirable languages to know. Its robust, easy, can run anywhere there is a C compiler (which is almost everywhere except windows), and powerful. Its not a fair comparison to a language like Ruby, or Lisp, or whatever else you want to list, since it is so much more popular than those are.
2
u/the_hoser Sep 16 '15
Right, I agree with you. Python is awesome.
Why does it need to be bundled with Windows?
1
u/BobHogan Sep 16 '15
It doesn't need to be bundled with Windows but that doesn't mean it shouldn't be. Photo apps don't need to be bundled with windows. A browser doesn't need to be bundled in with the OS. Neither does a calculator app. Yet they are bundled in because the pros vastly outweigh the cons. The same is true for Python. There are enough people using Windows that are frustrated over non native support (millions) that it does justify bundling it in. There are no downsides that can't be easily addressed. And the "bloat" is negligible considering the size of the OS itself.
4
u/the_hoser Sep 16 '15
It doesn't need to be bundled with Windows but that doesn't mean it shouldn't be.
I argue that it shouldn't be.
Photo apps don't need to be bundled with windows.
You're right. Web browsers can probably do that job.
A browser doesn't need to be bundled in with the OS.
Blasphemy. How else will I download firefox?
Neither does a calculator app.
Agree. Web browser can do that.
Yet they are bundled in because the pros vastly outweigh the cons.
For the web browser, I agree.
The same is true for Python.
I disagree.
There are enough people using Windows that are frustrated over non native support (millions) that it does justify bundling it in.
Again, I disagree. There are plenty of frustrated Python developers. Most Windows users could not care less about its abscence from the OS.
There are no downsides that can't be easily addressed.
I disagree. Version fixation is a very real problem in the Python community. Windows would only make it worse.
And the "bloat" is negligible considering the size of the OS itself.
Sure. I guess. I'm not worried about how much disk space can't be used to store photos and pirated movies.
The 'bloat' I refer to is the organizational bloat of maintaining YET ANOTHER FEATURE. Does the Windows team really need to take on this responsibility? You can't just clone the latest version off Python.org and ship that with the disk image. Microsoft would have to take personal ownership of the version of Python that they ship with Windows. It would need more than the one guy working on Windows support in Python to make it so. They would have to audit the code (good for Python in the near term, if they share their code. The coin's still flipping in the air as to whether or not they would.)
In the long term, it would be a disaster. The version that ships with windows would be the most popular version of Python in the world. It would become the version of Python. Python 3.7 just came out? Who cares? Microsoft only offers 3.4.7 and that's what we use. That's what the libraries use. That's what everybody uses.
I'd rather just have them help us with improving the behavior of Python in Windows. They're doing just that. They have a full-time developer doing just that.
Don't mess with a good thing.
2
→ More replies (2)0
u/jugalator Sep 15 '15
Why should Microsoft provide an interpreter for your favorite language?
I think it's simply to have an interpreter that can be used cross platform. At least one. There exists no interpreter that is a) bundled and b) cross platform across Windows, Mac, Linux today.
5
u/the_hoser Sep 15 '15
I think Bash would be a better candidate, then. It's less political. It's simpler to deploy (nobody writes Bash plugins), and arguably more stable than Python.
Look, I love Python, but I don't see why it's something that should be bundled with Windows.
8
u/archiminos Sep 15 '15
Why? Python's not something the majority of Windows users would use.
→ More replies (13)
8
Sep 15 '15
Or take two seconds and install it yourself. Why bloat up windows even further with a minority's preferred scripting language?
-1
u/desmoulinmichel Sep 15 '15
Because:
end users (not dev) will never install it. So right now you can have easy small GUI tools that works everywhere without compiling stuff.
if you administrate a park of machines, you have to install it on all of them, document it, support it, ask to your superviser for the permission to do it, etc.
you need a scripting language anyway.
it's not minority's preferred scripting language : it's already installed by default on Mac and Linux for a reason. It's the language that can : script games like lua (CIV, EVE online...), script OS like bash/powershell (even yum is written in python), script 3D softwares (blender, maya...), script GeoSoftware (all SIG basically), script networking analysis (it's pretty much a standard with all hackers) and YET allow GUI, web sites, data analysis and big programs to be written. It's not Python to be Python, it's Python because it does the job of being a powerful robust cross plateform largely supported scripting language. That can do more than scripting if you need so.
1
Sep 16 '15
So we should include Java too? What else? Why, the language of choice seems to be different every 5-10 years anyways and this is a dependency of programs not the OS.
Well yes, sys admins manage packages. See above for why that is good.
Windows ships with scripting languages tightly integrated with the Windows OS, what you need as a programmer is different, again see the first bullet
Not Mac anymore and Linux distros usually come with apps (like yum) that use it which is why you see it included not they think everyone needs it (in fact they usually come with a set of user aps and then work the dependencies backwards, not the other way around). All of those other things are reasons to look at the first bullet again.
8
Sep 15 '15
Saw this comment on the suggestion page:
Please include the 32-bit version of Python, not the 64-bit version. Easier to find modules, and if you specifically need 64-bit Python, you know what you're doing anyway.
Makes me wonder if Windows users even deserve Python.
2
u/BeetleB Sep 16 '15
Eh? Have you tried using many modules in 64 bit Python on Windows?
I'll give you a hint.
1
Sep 16 '15
Do you know how to best remedy problems with third party libraries not patching to support new versions of a platform?
I'll give you a hint: not by including a dated version of the platform in a long term supported version of Windows.
1
u/BeetleB Sep 16 '15
So your vision of providing Python to Windows is excluding all the folks who do scientific work in Python?
→ More replies (2)2
u/insainodwayno Sep 16 '15
It's not just NumPy. I originally used the 64-bit version on my work desktop and the 32-bit on my work laptop, and just got frustrated jumping through hoops to get modules that just loaded up in seconds with pip or easy_install in the 32-bit version. Last time I checked, the 32-bit version of Python is not "dated" either, and an arrogant comment like "makes me wonder if Windows users even deserve Python" is really the sad and misguided thing here.
1
u/insainodwayno Sep 15 '15
That was my comment actually, and I'm curious what you mean by your comment.
-1
u/desmoulinmichel Sep 15 '15
A bit sad. But hey, even if you don't use Windows, you will probably need to write code that should run on it one day.
3
Sep 15 '15
you will probably need to write code that should run on it one day.
Which is a really good reason to not ship Windows with an already antiquated Python interpreter.
→ More replies (1)
5
u/desmoulinmichel Sep 15 '15
Having one scripting language available on all OS would make everybody's life so much easier.
crossing fingers while hoping Ubuntu does ship with Python 3 by default this time as they failed this goal 3 times already
As for OSX, I guess we can wait untill 2020.
But hey, I prefer to have to write a script that must run on Python 2 and 3 but will work on all my machines than a script in bash and a script in powershell, or worst, an Python installer.
4
u/dnb_addict Sep 15 '15
I'm curious - How come Ubuntu has failed this goal 3 times?
8
u/desmoulinmichel Sep 15 '15 edited Sep 15 '15
The last 3 times, they said they were going to make Python 3 the default version, and they didn't. Too many packages to rebuild.
Remember https://wiki.ubuntu.com/Python/FoundationsTPythonVersions ?
2
3
u/rspeed Sep 15 '15 edited Sep 15 '15
As for OSX, I guess we can wait untill 2020.
May as well share this.
Edit: I filed a request to include Python 3.
46
u/wmil Sep 15 '15
This will only lead to love-letter-for-you.txt.py and virus scanners blocking all .py files.
7
1
3
u/cj5 def Sep 15 '15
Really? Is it that hard to install and bundle code with releases?
-2
u/desmoulinmichel Sep 15 '15
You are the 37th saying this. See previous answers.
3
u/cj5 def Sep 15 '15
I read internet fast. I guess that's consensus then.
0
u/desmoulinmichel Sep 15 '15
No, just that 37 people are not scripters. Lot's of web dev around here.
This morngin, 700 votes. Now 1700 : https://windows.uservoice.com/forums/265757-windows-feature-suggestions/suggestions/6693586-ship-python-3-and-python-2-with-windows-10
I guess it's a popular request.
4
u/andrey_shipilov Sep 15 '15
Yeah, because installing it is so fucking hard.
6
u/desmoulinmichel Sep 15 '15 edited Sep 15 '15
If you are not a dev, you will not install Python by yourself and you'll click on the script, not understanding why it doesnt work. Reading any tutorial will make you go "fuck it" and dl the Go stand alone executable version.
If you are a sysadmin with a lot of machines, installing properly it on all of them is work : you need to automate it, and ask for the permission to do so with paper work on you hierachy, and support it. Then you need to document it. And train your team.
And of course, you don't know what version to download, and install when you are a newcomer, so you come to reddit, and ask 2VS3 for the 1000 times.
So yes.
8
Sep 15 '15
Most shops either use an MSI package or image a machine configuration.
→ More replies (13)1
12
u/Meatslinger Sep 15 '15
As someone who does IT for both platforms in equal measure and would love something of a unified language in which to script, I second this motion.
6
u/tech_tuna Sep 15 '15 edited Sep 15 '15
What? You mean you don't want to write bash and Powershell all the time???
/kidding
1
u/Make3 Sep 16 '15
... you can just install it
1
u/Meatslinger Sep 16 '15
Due to employer regulations, not across all 30,000 workstations I potentially have to deal with; good ol' bureaucracy hard at work. Having it integrated at the system level would force it to be inherently compatible with itself and a great many other systems; imagine being able to perform remote commands from PC to Unix or OSX without the use of third party software. There's all sorts of benefits I could imagine from having it integrated across multiple distinct platforms.
6
Sep 15 '15
While I am all for not having to install python and add it to the path myself, what would be the point of this?
Linux and OSX have python included with the OS because it uses it (to varying degrees). Windows doesn't use python for anything, so this would just be bloatware. Bloatware I would install anyway, but still bloatware.
3
u/sanshinron Sep 15 '15
Would be nice, but the reality is that even on Linux you have to install Python by yourself, cause the binaries are always outdated.
6
u/Farkeman Sep 15 '15
what?
Haven't seen any distro that didn't include python aside from scratch distros.
5
u/vtable Sep 15 '15
Parent isn't saying they aren't in the repos. He's saying the versions in the repos are out of date.
I've experienced this myself. The version that shipped was a major rev older than I needed. I had to build the newer version of Python and quite a few 3rd-party packages. It was quite a hassle. A lot of user space apps in Gnome (at least) use Python and various packages. Learning how to get them to coexist took some effort.
Ironically, doing the same on Windows was trivial. (The code was cross platform).
3
u/Farkeman Sep 15 '15
I program python for a living and currently have 3 different distros running both python 2.7 and 3.4/3.5(just came out) and never had troubles with making python packages coexist or having to build python myself.
system packages reside in system python and everything else should have their own virtualenvironment, it takes like 2 seconds to setup one...
1
0
u/desmoulinmichel Sep 15 '15
One thing is that it's really easy to up Python from 3.x to another 3.x. You could almost roll it as soon as it's released since the old code will still work. It's the 2.7 => 3 that is hard, as usual.
1
u/desmoulinmichel Sep 15 '15
It depends of your goal. For scripting, even Python 2.4 would be better than having to create a powershell and a bash version.
4
2
u/koed00 Sep 16 '15
Besides this, you can't really install or update any packages in the system Python without potentially screwing up your whole system. You have to have a virtual env if you want.
For this I wouldn't mind if they just hid the system python under a different name.
1
1
u/truh Sep 15 '15
My distro has Python 3.4.3 which seems acceptable since 3.5 was released only 2 days ago. I will probably have 3.5 by next week.
3
u/triacontahedron Sep 15 '15
No way, https://en.wikipedia.org/wiki/Embrace,_extend_and_extinguish Even if microsoft wont do this on purpose they will definitely screw up compatibility. Where are guaranties it wont be IE level of inconsistency (on purpose or not)? Or they standardize some old python version so most projects will be torn between easy windows install or modern python.
20
u/desmoulinmichel Sep 15 '15
Microsoft is actually a good civilian in the Python world : it pays dev to contribute to the source code, provides a top notch Visual Studio supports and recently added Python to Azur hosting. They also use the language internally. So I doubt they would screw this up : their track record with Python proves otherwise.
Plus, they are 2 microsoft divisions that have been doing a good job for the last few years : the material division (console, tablets, motion capture) and the programming division (ide, programming languages...).
Don't get me wrong, I still have strong objections about the entire way MS conducts it's business. But I don't think this applies here.
→ More replies (1)5
u/fnord123 Sep 15 '15
If we're going to Microsoft with a shopping list, I think a better one is asking for C11 support (just skip C99, it's too shameful that they don't support it) so Python can use some modern Cisms. AFAICT, the reason CPython is stuck with C89 is because Visual Studio won't support anything more modern.
Many Linux distributions don't come with Python and one installs it with the package manager. Windows users can do the same with Chocolatey. Maybe they should provide Chocolatey by default.
0
u/desmoulinmichel Sep 15 '15
If we're going to Microsoft with a shopping list, I think a better one is asking for C11 support
C-compiler is an entire different issue. Embedding python doesn't target primarily app dev, but scripters, so they can share the script with non dev, or deploy it on a lot of machines on an heterogeneous park. You need a scripting language anyway on all machines. You don't need a compiler on all machines, only on the dev machine.
Many Linux distributions don't come with Python and one installs it with the package manager.
Ubuntu and Fedora come with it. They are 90% of the park.
Maybe they should provide Chocolatey by default.
They will have something like that. But it doesn't solve the scripting problem.
If you have 100 machines, you don't want to install a tool on the 100 machines, it's a lot of work.
If you have a nice script to share, you don't want your end user to need to install the VM.
5
u/fnord123 Sep 15 '15
If you have 100 machines, you don't want to install a tool on the 100 machines, it's a lot of work.
No it's not. You can install Python with Active Directory's Group Policy.
→ More replies (3)2
u/jammycakes Sep 15 '15
I doubt if embrace, extend and extinguish would be as effective a strategy for Microsoft today as it was in 2001. You need to have a dominant (if not monopoly) position in the market to manage that, and Apple, Google and other players are now large enough that that's arguably no longer the case.
2
u/cittatva Sep 15 '15
I wish it wasn't installed in OS X. At least a once a year I find myself trying to eradicate one version or another to make the latest work. I get into the situation when I try to install it with homebrew. Just give me a decent pack manager and let me decide what to install.
-1
u/desmoulinmichel Sep 15 '15
This is very different. You are seing it from a dev perspective. In that case, you can install the version you target. It you can do so easily on mac.
But for scripting, you need a solide common base. You don't need a recent one. You just need it to be here.
3
u/spinwizard69 Sep 15 '15
This thread highlights one issue with the Python community and with the Windows community at large, that is the obsession with the past. If the intent is to offer a new feature to Windows, Python, there is no rational reason that the 2.x python series should even be mentioned here. New capabilities shouldn't be focused on the past but rather should move forward to extend the operating system.
I just find it perplexing that so much of this thread is focused on backwards compatibility for a feature never offered by MS.
3
Sep 15 '15
I might be mistaken, but Linux distros and OSX aren't just shipped with Python; Python is a fundamental component needed for their operation.
1
u/DoTheEvolution Sep 15 '15
asked in this subreddit 3 months back
-1
u/desmoulinmichel Sep 15 '15
The upgrade argument is moot is we are talking about python 3.x and windows 8 and+:
python code is forward compatible on major versions.
windows update can update python very easily and is is up by default.
we are used to work with old Python versions. Better have 2.4 than powershell.
MacOS have been very slow with python upgrades. Yet you can write scripts running on MacOs and Linux, but still not on Unix and Windows.
1
2
u/cogman10 Sep 15 '15
I'm against it personally.
Some of microsoft's biggest security vulnerabilities have come from their ability to execute javascript and vb on every windows machine. The last thing we need is another attack vector for attackers to exploit.
I'm much more in favor of python being installed and maintained in the user land. The only thing I would suggest is that MS start maintaining a package manager for open source projects. If I install python on my machine MS should be watching for updates and give me the option to update as part of the windows update process.
2
2
Sep 16 '15
It's included in current visual studio. So far microsoft seems to be more interested in providing development and scripting stuff with their development and scripting products. Why ship stuff to a user base that will by and large never ever use it ever?
1
u/SizzlingVortex Sep 15 '15
Aside from the normal issues that have been brought up, the link says Ship Python 3 and Python 2 with Windows 10. Why would Python 2 need to be included? Official support for it ends in 2020. Why include something like that in the newest release of Windows? Already off to a huge headache by including both of them.
Anyhow, including Python (any version of it) in stock Windows primarily only benefits developers and administrators. As much as I love Python, it's not gonna happen, nor does it need to. Just bundle the Python interpreter (the version of your liking) with your application and be done with it.
1
u/honestduane Sep 15 '15
NO.
Then everybody will be stuck on one version of python. One single buggy defect filled version that cant get updates without corrupting the system and needing to fully re-install windows.
1
u/oh_____interesting Sep 15 '15
Not really possible I think. Open source licenses can be tricky and if you package Python with Windows, then Microsoft will owe Python a cut of the proceeds. Why would Microsoft want to do this? Moreover, other libraries might have clauses that kick in if it is packaged with something that is sold.
I have not read the Python license in ages. It might not be true, but if it is then it is a bad deal for Microsoft.
1
u/gospelwut Sep 16 '15
I think an official OneGet package would be better.
If they added a pre-populated cache for OneGet similar to Aptitude (apt-get) that could notify you "Python is available via the package manager...."
There are already approved packages for Chocolatey
1
u/ki4jgt Sep 16 '15
Python came installed on my father's HP OEM. That was XP though. I don't know if they're still doing it or not.
1
1
u/hansq Dec 27 '15
Wouldn't this be counter intuitive for Microsoft? They have WPF, SQL Server, ASP.NET, C#, etc on Windows and provide products and services built around that. If Python got popular on Windows because it was bundled with the OS, then devs would use less MS stuff, so less revenue.
However, I would like to see python3, gtk+ / qt and c compilers bundled with the OS. (Wishful thinking LOL). Because installing these on Windows currently is a pain! You got to install Cygwin. Then Msys. And these are different depending on if you decide to use Python2 or 3. And these are hosted on SourceForge. Then you got to use the package manager to install the package. Sometimes this means using the command line and Pacman. And compiling requires GCC, etc. Not fun.
1
1
1
1
1
u/Carudo 3.10.5 Sep 15 '15
Repository of the trusted apps and tool like apt-get -- this is what Windows really needs.
1
u/shif Sep 15 '15
they don't even include .net which is theirs
1
Sep 16 '15
They include the latest version by default in 10 at least, 3.5 and older I had to activate during the first install of an app that used it.
1
u/rzet Sep 15 '15
I would rather not see any python.. less hasle afterwards. Obviously they would break something or include some shit version.
1
u/Kwpolska Nikola co-maintainer Sep 15 '15
Considering Windows does not ship with a C# compiler, why Python? You would expect that they would promote their own stack first…
1
0
u/skytomorrownow Sep 15 '15
ITT: basically, people who wished some kind of *nix was the basis of Windows.
1
u/sreya92 Sep 15 '15 edited Sep 15 '15
To be honest it wouldn't be terrible if it was would it?
2
u/skytomorrownow Sep 15 '15
Not at all. I'm all for it. My point was just that most of the things people are complaining about are not really related to Python, but instead to the way Windows works.
1
Sep 16 '15
I quite like the fact that Windows isn't unix like. I don't see why everyone thinks that a system that was created in the 70s is the epitome of OS design philosophy.
-2
Sep 15 '15
Python 2 or 3 couldn't save the Titanic and it certainly isn't going to save Windows.
2
u/desmoulinmichel Sep 15 '15
It's not about saving windows. Several people here are trying to make it a troll about "windows is bad ok".
That's not the point.
You are not going to kill windows by no installing Python in it. It will be here for the next decades.
Give that we have to work with it, we should make it a easier to do so.
4
Sep 15 '15
The real question is how is bloating up the core OS some more going to make it better for developers or anyone not in that core user segment. You can just download and install the latest version? Maybe I am a C/C++ developer. That compiler rarely gets updated why not shove that into the core?
Windows 10 is already 10-15GB+ on install far more than a typical Linux system. Adding more to it doesn't seem like a good idea. If anything it needs about 5GB culled from it before even considering adding anything back in.
1
u/desmoulinmichel Sep 15 '15
Because you don't script with C. Because you don't need to mass deploy you c compiler on a park of machines : you just deployed the compiled version. Because compiled languages and interpreted languages don't have the same usages. Because right now Python is the best interpretted language for scripting AND building small tools AND testing AND doing network analysis AND doing data parsing.
But I agree on windows size. Although the problem is a different debate.
1
Sep 16 '15
True, i'm pretty sure they would deploy one of their own home grown languages like F# before a 3rd party language.
1
Sep 16 '15
Because right now Python is the best
While an opinion if this was true and universally accepted this statement still says what's wrong - it's what's liked right NOW. If they included everything that was popular every time they would be in trouble, they design their own scripting and compiled language families so they can keep it integrated and consistent across all versions.
0
0
-7
u/egasimus Sep 15 '15
No. Just no. Let Windows keep sucking. Please.
6
u/desmoulinmichel Sep 15 '15
"Don't fix the road 80% of the planet uses, in 30 years maybe they'll stop"
0
u/Geohump Sep 15 '15
Better count again. Linux use surpassed Windows use years ago.
Hint - include the NSA, every cloud service, server farms like Google, yahoo, Amazon, Facebook, trading companies, The NSA, and Cell phones.
The only market Windows has a good share in is user desktops (and some servers), and that market is shrinking rapidly. Why do you think MS is trying so desperately hard to get Win accepted on other platforms (like cell phones) again? (like it was in the 1990's. :-) )
2
u/desmoulinmichel Sep 15 '15
I counted well.
80% of the planet (having electricity, which is not that much of the planet ) uses windows. That doesn't mean they don't use Mac and Linux as well. It's not an OR, it's an AND.
They touch windows at work, or at home, or when they use bank/insurance/state administion systems. And of course, in Asia, Africa and South America, Windows has still a strong presence.
1
1
u/Geohump Sep 15 '15
And of course, in Asia, Africa and South America, Windows has still a strong presence.
Windows has much less penetration in those regions. Ironically PC's and Software costs more in those countries.
1
Sep 15 '15
On the desktop ... nope. On smartphones and servers yes and the former doesn't have python installed as default.
0
Sep 15 '15
[removed] — view removed comment
0
u/desmoulinmichel Sep 15 '15
That's assuming you are willing to put more effort in supporting the absence of a good crossplateform scripting language than accept a part of the road fixed. It's a really weird way of seing things.
-1
199
u/takluyver IPython, Py3, etc Sep 15 '15
This came up at Pycon, but there was concern that people wouldn't update the included Python, so in a few years, we'd all be stuck writing code for the version that was included.
It was also suggested that there could be a dummy
python.exe, and when you tried to run it, it would let you easily install the latest Python version. OS X does something similar for tools likegit. But that could have some of its own problems, e.g. if code checks for apythoncommand to see if Python is installed.