top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

General development using Python

+1 vote
184 views

I am unhappy with the general Python documentation and tutorials. I have worked with Python very little and I'm well aware of the fact that it is a lower-level language that integrates with the shell.

I came from a VB legacy background and I've already "un-learned" everything that I need to (I know, that language stinks, and isn't OOP or even useful!).

I have to get back into writing Python but I'm lacking one thing ... a general understanding of how to write applications that can be deployed (either in .exe format or in other formats).

So my issue is basically to understand how to go about writing programs and compiling them so they can be deployed to less tech-savvy people. Here's what I think I have to do, in a general sense:

=> Pick a GUI and just run through the tutorials to learn the interfaces as fast as possible.

This is all fine and dandy, but more than likely when I do this the people that I am sending solutions to will, if not receiving a simple .exe file, receive the package from me and say to themselves "what in the world do I do with this!?"

Is there someone who can suggest that I fix this or help them deal with complex languages like Python and programs written with it?

posted Jul 9, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

3 Answers

+1 vote
 
Best answer

Why do you want to use python? It is not a language that can be packaged as an executable.

answer Jul 9, 2013 by anonymous
0 votes

You cannot compile Python in any meaningful way that does what you want.

There are projects that "bundle" the CPython interpreter with your project, but this makes those files really big. I suggest just making sure that Python is installed on their end - it's a one-time thing anyway.

You don't expect to be able to run Javascript without a Javascript interpreter (such as a browser) so why would you expect differently for Python?

answer Jul 9, 2013 by anonymous
0 votes

That's one last thing you need to un-learn, then :)
You distribute Python applications simply as they are - as a .py file (or a collection of .py files), and your users run them. It's really that simple!

In fact, deploying to .exe or equivalent would restrict your users to those running a compatible OS (same OS, same word/pointer size (32-bit or 64-bit), possibly other restrictions too), whereas deploying the .py files just requires that they have a compatible Python interpreter installed. Target the three most popular desktop platforms all at once, no Linux/Windows/Mac OS versioning. Target the lesser-known platforms like OS/2 with the same script. And completely eliminate the "compile step", which might take a long time with large projects. (Okay, your code does still get compiled, but the interpreter manages all that for you. All you need to know is that the .pyc files don't need to be distributed.)

Python - like most other modern high level languages - is designed to save you the hassle of working with the details. This is another of those hassle-savings. :)

answer Jul 9, 2013 by anonymous
Similar Questions
0 votes

I want to use python for creating dynamic database driven websites. and I don't want to use existing web frameworks for my work. I am learning things so I wont feel lazy to write all the code myself because I want to learn.

could anyone suggest me any books/site from where I can start. I want to follow MVC architecture. so please suggest me some links/book or anything

+1 vote

I've been developing with python for a while on Ubuntu but will soon be transitioning to full-time python development. I have the option of using a Mac or Ubuntu environment and I'd like to hear any thoughts on the pros and cons of each. Specifically, how's the support for numpy and scipy? How are the IDEs?

Since I generally like working with a Mac, I'd like to hear if there are any significant downsides to python dev on OsX.

+4 votes

I have been trying to set up a python, django, mysql, virtualenvwrapper and git development project and am really confused. All of the documentation seems to ignore the apt-get installation methods used by Debian Linux and its derivatives. Does pip install the same as apt-get; I don't think so. If I use virtualenvwrapper, how does this fit with the normal debian (wheezy) installation. I also need git which just confuses the situation even more. Must I give up the automatic updating system that Debian provides when setting up the development environment?

The documentation centers on Windows, Mac and generic Linux distributions and ignores the automation of the Debian installation. All of the documentation I have found concentrates on the installation of individual packages or on the use of python-django and is very sketchy on the overall virtualenv(wrapper), git, python-django file structure and installation order.

–1 vote

I am new to python development and I want to know what kinds of tools people use for python development. I went to Python website and found several tools.

  1. Automated Refactoring Tools
  2. Bug Tracking
  3. Configuration And BuildTools
  4. Distribution Utilities
  5. Documentation Tools
  6. Integrated Development Environments
  7. Python Debuggers
  8. Python Editors
  9. Python Shells
  10. Test Software
  11. Useful Modules
  12. Version Control

What else do I need? Also, which software is used in daily base? I know version control software and bug tracking software are used almost everyday by developers. Which software is used less often?

Also, I will use GUI interface for Python. What kind of widget toolkits do you recommend? I know there are GTK+ and Qt.

0 votes

I was planning on making a small 2D game in Python. Are there any libraries for this? I know of:

• Pygame - As far as I know it's dead and has been for almost a year
• PyOgre - Linux and Windows only(I do have those, but I want multi-platform)
• Cocos2D - Won't install and cant find any support
• PyCap - Can't find any documentation
• Panda3D - Dead since 2011 + overkill for what I need
• PyOpenGL - Overkill

Any help on what to do with this would be appreciated. I am making games mainly in Lua but I'd like to make one in Python for fun. I also understand that Python isn't exactly the *BEST* choice programming a game, but I have heard it is possible. Tell me if it's true. Thanks!

...