Michal,
Generally, the setup.py file has been targeted towards those parts of the build that are portable across various platforms. The Makefile is responsible for doing the part of the build that is only done on OpenSolaris (such as building the SVR4 packages).

The Makefile calls into the setup.py file as one of its actions, so developers on OpenSolaris can just run make, while developers on other platforms just run setup.py.

Since this appears to be Unix only, maybe it would be better to just integrate this into the top level Makefile.

Tom

Michal Pryc wrote:
Hello,

Currently I am integrating automated tests for Package Manager in the IPS gate, I have most of the parts ready, but one - LDTP package which is needed to run the tests.

LDTP is python app, but it doesn't have setup.py build system. To build it we need to:

- setup the proper environment variables.
- run configure and make commands
- package SUNWldtp

Now my question is what would be the best way of building LDTP package. I have started hacking setup.py file to simply add another function which will setup environment variables and run subprocess with configure, make and make install commands and then restore the previous environment variables.

Please let me know if this is the correct way of building LDTP package or there is a better one?


begin:vcard
fn:Tom Mueller
n:Mueller;Tom
org:Sun Microsystems, Inc.;Update Center Software
adr:;;21915 Hillandale Dr;Elkhorn;NE;68022;USA
email;internet:[email protected]
title:Senior Staff Engineer
tel;work:877-250-4011
tel;fax:877-250-4011
tel;home:402-916-9943
x-mozilla-html:TRUE
version:2.1
end:vcard

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to