473,703 Members | 6,200 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help with source package including eggtrayicon

Hi,
I am quite new with python and I'm developing a package that is
including a binary file (eggtrayiconmod ule.so) that is open source.

My software is developed in part under linux, and now I would like to
make it fully portable to other unix-like platforms. Therefore I need
to provide the source and integrate eggtrayicon compiling in my
setup.py.

At this point I don't know how go on.

The copy of eggtrayicon I am using is provided by rhn-applet under
Fedora and other distributions, and if I'm not wrong is originally
part of Gnome.

But I do not know what to do with the package to obtain the .so
file... I have only a very rudimental base of C programming.

Is there anyone that can point me in the right direction? At the
present time I am using the python distutils to install/build the
python files, and a method that could be integrated would be
preferable.

Thanks in advance,
Andres
Jul 18 '05 #1
1 1325
I could go on, and now I have my working Makefile and I can compile
eggtrayicon, but I would like to include this compile in my setup.py,
if possible.

My Makefile is:
# Makefile for eggtrayicon

OBJECTS = eggtrayiconmodu le.so

# Compilation stuff
CC = gcc
PYTHON_VERSION = $(shell echo `python -c "import sys; print
sys.version[0:3]"`)
PYTHON_INCLUDE = -I/usr/include/python$(PYTHON_ VERSION) \
-I/usr/include/pygtk-2.0 \
$(shell pkg-config gtk+-2.0 --cflags) \
$(shell pkg-config libgnomeui-2.0 --cflags)
LIBS = $(shell pkg-config gtk+-2.0 --libs) \
$(shell pkg-config libgnomeui-2.0 --libs)
CFLAGS = -Wall -g -fomit-frame-pointer $(PYTHON_INCLUD E)

all:: $(OBJECTS)

%.o : %.c
$(CC) -fPIC $(CFLAGS) -c -o $@ $<
%.so : %.o
$(CC) -shared $(LIBS) -Wl,-soname,$@ $< -o $@

Suggestions?

Thanks in advance.
Andres
Jul 18 '05 #2

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

Similar topics

9
5334
by: FISH | last post by:
Ever have one of those days when you're not sure if it's you who's gone mad, or the rest of the world? I have an Open Source project on SourceForge for communication with YSMG - Yahoo's IM protocol. I keep the project source in three directories, based upon the code's function: one for the network API code itself, one for the support APIs (basic chat spam filtering, Swing models, rich text decoders, etc), and one for the test client...
4
1610
by: Chris | last post by:
Hi, I followed the the aricle http://support.microsoft.com/default.aspx?scid=kb;en-us;321525 and was able to execute a dts package in vb.net. I replaced all the "Console.WriteLine" with "msgbox". The problem I am having is that on my form I added a listbox control and I created a sub that added entries to the list box Public Sub addListItems(ByVal sItem As String)
15
5079
by: Fady Anwar | last post by:
Hi while browsing the net i noticed that there is sites publishing some software that claim that it can decompile .net applications i didn't bleave it in fact but after trying it i was surprised that i could retrieve my code from my applications after i compile it so i need to know to prevent this from happening to my applications Thanx in advance
14
1190
by: Adrian Parker | last post by:
For deployment reasons, we don't want to have to install our large app on each network client manually; we'd like to have our users run a very small app on their clients that basically runs the main installer from a hidden share on the network. We want a server app that we can run somewhere that will be able to send the necessary info to the client apps. Okay, so the problem is that we don't want to have the users type in the address of...
1
1135
by: Uncle Sam | last post by:
Build a job that imports a new version of MTL_PARAMETERS at 6pm each day. It should keep trying to import the table until it is successful. Care should be taken to avoid data model downtime.
2
3773
by: Anantha | last post by:
Dear All, One day our Windows 2000 Server OS crashed, so our NT admin has re-installed the OS on C: drive. Fortunately we kept our database file and installation in F: drive. When we re-installed DB2 on the same location we are able to catalog and recover the database with old data files. Now the problem is when i tried to create a database its throwing errors "SQL1092N NCADMIN" does not have the authority to perform the requested". So...
1
1935
by: simonalexander | last post by:
I have got a homework task to do and I have started the work but I cannot finish it.Can someone please help me finish the code. The help given is much appreciated. The actual specifications are here: The task for this project is to write a simulator program for a robot designed to move packages around in a warehouse environment. The input to your program (from standard input) will contain a map of the environment in its original...
0
5570
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
1
2630
by: gquiring | last post by:
I have a new server running CentOS 5.1. I was surprised the stock PHP excludes MySQL, PDO and a bunch of other popular modules. I decided to download the source and compile a version with the modules I need but I used the phpinfo() configure option and modified my changes. What I don't get is stock configure (no changes) won't compile on my box. For example in the configure is --with-apxs2=/usr/ sbin/apxs'. I don't even have that...
0
8760
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9254
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9017
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7872
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5923
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4433
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3125
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 we have to send another system
3
2070
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.