maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   How to check if package is built on server in setup.py (https://talk.maemo.org/showthread.php?t=44591)

pbouda 2010-02-15 17:56

How to check if package is built on server in setup.py
 
Hi,

I uploaded a python package to drop.maemo.org, everything got built correctly, but there was one problem: I use environment variables to check on which operating system I am (Windows, Linux, Maemo; I install several files in different locations, depending on the os). So, normally I build the package in scratchbox with a TARGET=maemo environment variable. This results in a .dep package with maemo file locations (/opt for data, icons and desktop file in hildon folders). Of course, this variable is not available on the server and the resulting .deb package does not contain my maemo locations. How do I check in my setup.py file if my package is build on drop.maemo.org? Or is there any other way to have different packaging mechanisms (file locations) for different plattforms? Or do I have to provide a second setup.py for the server?


All times are GMT. The time now is 10:24.

vBulletin® Version 3.8.8