[Python-Dev] Multiprocessing on Solaris
Christian Heimes
lists at cheimes.de
Sat Mar 21 01:50:41 CET 2009
Martin v. Löwis schrieb:
>> Today I was in contact with a Python user who tried to compile
>> pyprocessing - the ancestor of multiprocessing - on Solaris. It failed
>> to run because Solaris is missing two features (HAVE_FD_TRANSFER and
>> HAVE_SEM_TIMEDWAIT). Does anybody have a Solaris box at his disposal to
>> test the settings? Neither Python 2.6 nor my backup have the correct
>> settings for Solaris.
>
> I don't quite understand what it is that you want tested - what
> "settings"?
>
> Most likely, the answer is yes, I can test stuff on Solaris (both SPARC
> and x86/amd64).
According to the user's experience multiprocessing should not compile
and run correctly unless this patch is applied. I'm not sure if the
value "solaris" for platform is correct. You may also need to change
libraries to ['rt'].
Index: setup.py
===================================================================
--- setup.py (revision 70478)
+++ setup.py (working copy)
@@ -1280,6 +1280,14 @@
)
libraries = []
+ elif platform == 'solaris':
+ macros = dict(
+ HAVE_SEM_OPEN=1,
+ HAVE_SEM_TIMEDWAIT=0,
+ HAVE_FD_TRANSFER=0,
+ )
+ libraries = []
+
else: # Linux and other unices
macros = dict(
HAVE_SEM_OPEN=1,
More information about the Python-Dev
mailing list