Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 24th, 2012, 01:27 PM
Cave_Dweller Cave_Dweller is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 9 Cave_Dweller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 51 m 30 sec
Reputation Power: 0
Packaging a python application as a module rather then a stand alone exicutable

First off I need to say "yes I am a newbie" actually more of a hobbyist when it comes to python, but I had a question that I cant seem to find an answer to. I was wondering if there is a way to package a python application and any associated libraries so that it can be used as a module in another python application. For example, in my case I am working on a project that I have put together to test out pyside (Python bindings for QT). However, now that I have come up with some cool stuff, I was thinking it would be nice to be able to share it with others. Being that I have never actually deployed an application like this before I started googling for answers. So far what I have found are applications like py2exe that package everything up into a single executable file which is cool. But what I would like to do is be able to package my python scripts, pyside and the associated Qt libraries as a module somehow so that it can then be used in another python application on a machine where pyside had not been installed. Is this possible?

Reply With Quote
  #2  
Old December 24th, 2012, 02:25 PM
metulburr metulburr is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 10 metulburr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 43 m 57 sec
Reputation Power: 0
try:
cx-freeze.sourceforgeDOTnet

py2exe also obtains 3rd party modules from my exp. Most of the time though, you do not need these as you are just "sharing" your programs. Linux users know how to obtain all the 3rd party modules if they don't have them already, and windows users will just have to learn.

So if you made a "tool" for other python programmers, they know how to obtain the 3rd party modules. You don't have to include it, nor would you want to as the version you package in it might not be compatible with theirs. If you made a program that you just want to show off to your friends, pc-illiterates, then py2exe would be best.

Reply With Quote
  #3  
Old December 24th, 2012, 02:57 PM
Cave_Dweller Cave_Dweller is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 9 Cave_Dweller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 51 m 30 sec
Reputation Power: 0
Thanks metulburr I suppose there is something to be said about folks installing their own set of modules. However, in my case I am actually a 3D professional and have been playing around with a 3d software package called Blender. For the most part it is built using python and I am trying to expand on some of the features using pyside. My goal is to be able to develop some cool new tools and then share them with designers without them having to go through the trouble of installing pyside on their machines.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Packaging a python application as a module rathern then a stand alone exicutable

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap