473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Version specific or not?

We have an app and I'm trying to decide where the app should be
installed. The question is whether it should be site-specific or not, as
in

/usr/lib/python2.3/site-packages
or
/usr/lib/site-python

The latter would solve a lot of problems for me.

In the case of emacs, most stuff seems to go into $EMACS/site-lisp and far
less into $EMACS/$current_version/site-lisp. The python site dirs seem to
be the opposite. We have lots of stuff in the 2.3/site-packages and very
little in the site-python directory.

If there are multiple versions of python installed on the same machine,
having a shebang that just looked for /usr/bin/python would make my life a
lot easier.

* Since we distribute .pyo files, is there an issue if the .pyo was built
with 2.3.5 and then executed by 2.4 or 2.5?

* Are there any caveats?

TIA

--
Time flies like the wind. Fruit flies like a banana. Stranger things have .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net
Oct 10 '07 #1
2 1216
Steven W. Orr wrote:
We have an app and I'm trying to decide where the app ... .
/usr/lib/python2.3/site-packages
or
/usr/lib/site-python

The latter would solve a lot of problems for me.
Fewer than you suspect
If there are multiple versions of python installed on the same machine,
having a shebang that just looked for /usr/bin/python would make my life
a lot easier.
* Since we distribute .pyo files, is there an issue if the .pyo was
built with 2.3.5 and then executed by 2.4 or 2.5?
Each python M.N.X has its own byte code for distinct values of M and/or N.
So, if you had a shared directory, not only would your users have to
be able to write to the shared directory (when they import mumble, and
mumble.pyc or mumble.pyo has been generated by a different version of
Python, they will recompile mumble.py and rewrite mumble.pyc (or .pyo).

-Scott David Daniels
Sc***********@Acm.Org
Oct 11 '07 #2
Scott David Daniels wrote:
Steven W. Orr wrote:
>We have an app and I'm trying to decide where the app ... .
/usr/lib/python2.3/site-packages
or
/usr/lib/site-python

The latter would solve a lot of problems for me.
Fewer than you suspect
>If there are multiple versions of python installed on the same machine,
having a shebang that just looked for /usr/bin/python would make my life
a lot easier.
>* Since we distribute .pyo files, is there an issue if the .pyo was
built with 2.3.5 and then executed by 2.4 or 2.5?

Each python M.N.X has its own byte code for distinct values of M and/or N.
So, if you had a shared directory, not only would your users have to
be able to write to the shared directory (when they import mumble, and
mumble.pyc or mumble.pyo has been generated by a different version of
Python, they will recompile mumble.py and rewrite mumble.pyc (or .pyo).
If the users *don't* have write access to the directory then no
byte-code is stored, and everything has to compile the libraries each
time. So it isn't necessary to have write, but either way sharing
libraries between versions is a pain for the reason you state.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden

Sorry, the dog ate my .sigline so I couldn't cat it

Oct 18 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: PlasmaDragon | last post by:
I'm a bit confused about the version number of Java. It's called J2EE, J2SE and J2ME, which implies it is at version 2. But just looking at java.sun.com, I can see a download for J2SE 1.5 beta! ...
8
by: Siemel Naran | last post by:
Hi. I have a table of products and versions, and these 2 columns are the unique key. My challenge is to write a SQL statement to find the latest version of each product. My solutions below...
32
by: Bob | last post by:
Can anyone point me to a place where I can obtain the Microsoft C/C++ Optimizing Compiler Version 7.00. It was distributed about 10 years ago on floppy diskettes. I had a valid license but...
12
by: Wade G. Pemberton | last post by:
Does anyone have a quick script to find which version of IE a page is being viewed with? Specifically, I want to seperate version 4 from versions 5+, and post a warning against using 4. I...
2
by: Kevin R | last post by:
I'm trying to get asp.net 1.1 running on my home PC. When I try creating a new ASP.NET Web Application in 'Visual Studio .NET 2003' I get the following error: "Visual Studio .NET has detected...
5
by: JDS | last post by:
I am trying to figure out how to use Subversion, but this question isn't really Subversion-specific. Any version control system will suffer from the same problem, IMO. I've crossposted to those...
7
by: Sky | last post by:
I have been looking for a more powerful version of GetType(string) that will find the Type no matter what, and will work even if only supplied "{TypeName}", not the full "{TypeName},{AssemblyName}"...
7
by: Wiebe Tijsma | last post by:
Hi, I'm running a web application application using the Microsoft.Interop.Security.AzRoles version 1.2.0.0 in the GAC. After an upgrade to Vista, I also have a version 2.0.0.0 in the GAC. I...
6
by: Andrus | last post by:
VCSE 2005 .NET 2 WinForms I created assembly at runtime and added mydll.dll reference to it. mydll.dll is in applicatino startup directory. When I change mydl.dll to never version, this assembly...
4
by: John Kotuby | last post by:
Hi all, I am upgrading my web app from VS2005 to VS2008 (using VB). I opened the project in VS2008 and selected the 3.5 version of NET framework. The project compiles and runs fine on my Dev...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.