473,387 Members | 1,789 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,387 software developers and data experts.

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 (eggtrayiconmodule.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 1312
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 = eggtrayiconmodule.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_INCLUDE)

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
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...
4
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"....
15
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...
14
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...
1
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
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...
1
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...
0
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...
1
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
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...

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.