473,473 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using eggs

oj
Hi all!

As is about to become apparent, I really don't know what I'm doing
when it comes to using eggs.

I'm writing some software that is going to be deployed on a machine as
a number of eggs. Which is all well and good.

These eggs all end up depending on each other; modules in egg A want
to import modules in egg B etc.

It's not really practical to add the path to each individual egg to
the PYTHONPATH (although there's all in a directory that is in
PYTHONPATH).

Do I have to add boiler-plate code to the beginning of all the modules
with these dependencies to check if modules are available and require
the eggs if they aren't? Or is there a way I can have stuff 'just
work' as it does in the development environment when the modules
haven't been bundled up into eggs?

On a similar note, I can't seem to get the automatic script creation
stuff in setuptools to create scripts that have additional
requirements. I tried defining extra requires giving the names of
other eggs that will be required, and then specifying these as extras
to the console_scripts, but the generated scripts were no different.
Am I doing something wrong? Or am I just not understanding something?

I'm muddling through getting this all working at the moment, but I get
the distinct impression that there's a better (correct?) way that I'm
not aware of.

Sorry for such a vague posting.

-Oli
Jan 11 '08 #1
1 1192
On Jan 11, 10:33 am, oj <ojee...@gmail.comwrote:
Hi all!

As is about to become apparent, I really don't know what I'm doing
when it comes to using eggs.

I'm writing some software that is going to be deployed on a machine as
a number of eggs. Which is all well and good.

These eggs all end up depending on each other; modules in egg A want
to import modules in egg B etc.

It's not really practical to add the path to each individual egg to
the PYTHONPATH (although there's all in a directory that is in
PYTHONPATH).

Do I have to add boiler-plate code to the beginning of all the modules
with these dependencies to check if modules are available and require
the eggs if they aren't? Or is there a way I can have stuff 'just
work' as it does in the development environment when the modules
haven't been bundled up into eggs?

On a similar note, I can't seem to get the automatic script creation
stuff in setuptools to create scripts that have additional
requirements. I tried defining extra requires giving the names of
other eggs that will be required, and then specifying these as extras
to the console_scripts, but the generated scripts were no different.
Am I doing something wrong? Or am I just not understanding something?

I'm muddling through getting this all working at the moment, but I get
the distinct impression that there's a better (correct?) way that I'm
not aware of.

Sorry for such a vague posting.

-Oli
I know when I've asked questions about eggs and setup-tools, I was
referred to the Distutils user group. I would cross-post there for
double the fun!

http://mail.python.org/mailman/listinfo/distutils-sig

Mike
Jan 11 '08 #2

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

Similar topics

2
by: Stephen Ferg | last post by:
There are a couple of broken links on the Python Eggs site: http://www.python-eggs.org/links.html I'd like to reach the maintainer and report them, but there's no information about the...
9
by: seberino | last post by:
I have been using distuils for a while and was wondering when Python Eggs (new project) is better? So basically Python Eggs precompiles and compresses binaries for you so you just have to load...
5
by: seberino | last post by:
It appears that apps distributed as Python Eggs are either a single compressed blob in site-packages directory or a directory under site-packages directory. Is this ALWAYS true? So by just...
1
by: Srijit Kumar Bhadra | last post by:
I have browsed the following links 1) http://peak.telecommunity.com/DevCenter/EasyInstall 2) When Python *Eggs* better than Python *distutils*?? What's Eggs? (http://tinyurl.com/m8dyd) But I am...
3
by: Mike Orr | last post by:
I'm trying to install a program that uses Durus on a server. It appears that if a Python program uses eggs, it creates a ~/.python-eggs/ directory, so the home directory must be writeable. This...
2
by: nisimura | last post by:
Hi, I'm trying to use MySQL Python module on Cygwin. Since there is no binary package, I compiled MySQL C client library and Python module (http://sourceforge.net/projects/mysql-python)...
17
by: Harry George | last post by:
....at least around here. I run a corporate Open Source Software Toolkit, which makes hundreds of libraries and apps available to thousands of technical employees. The rules are that a) a very...
5
by: jryanfallon | last post by:
I am trying to write a program to sort eggs, extra eggs are discarded the program must have a pop up box for enter the eggs box type extra large - 12 dozen (144 eggs) large - 6...
12
by: G.S. | last post by:
Is it acceptable to use { } blocks to improve readability and maintainability of the code? Example: //add the checkbox column DataGridViewCheckBoxColumn column = new...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.