On Mon, Dec 30, 2013 at 1:31 AM, Andrew Barnert email@example.com wrote:
On Dec 29, 2013, at 3:28, anatoly techtonik firstname.lastname@example.org wrote:
if os.architecture == 32: download('http://www.libsdl.org/release/SDL2-2.0.1-win32-x86.zip') else: download('http://www.libsdl.org/release/SDL2-2.0.1-win32-x64.zip')
Love it! A win32-x86 build is exactly what you want on 32-bit ARM9 linux, a win32-x64 build is perfect for ppc64 OS X. And if you're running a 32-bit python on 64-bit Windows you almost certainly want to download 64-bit libraries, right?
I am glad you've noticed this piece of code is for Windows. It is also nice that you understand the difference between OS bitness and Python bitness.
I also love hard coding SDL 2.0.1 into your portable application, because there's no way they'll ever release a newer version without telling you in advance so you can forcibly update all your users, which makes their "latest" links useless.
You'll like it even more if I tell you there is also a hash and size info hard coded. https://bitbucket.org/techtonik/locally/src/8367fad824c111367b99baf443c5d38b...