[Pythonmac-SIG] Source for pythonmac.org releases?

2007-08-16 Thread Timothy Reaves
I can't seem to find source for these.  I need to compile myself, as I'm 
running 
10.5.  I'm seeing some weird stuff, and want to determine if a recompile will 
take care of it.

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Source for pythonmac.org releases?

2007-08-16 Thread Ronald Oussoren


On 17 Aug, 2007, at 4:15, Timothy Reaves wrote:

I can't seem to find source for these.  I need to compile myself, as  
I'm running
10.5.  I'm seeing some weird stuff, and want to determine if a  
recompile will

take care of it.


AFAIK the binaries on pythonmac.org got contributed by various  
people.  I don't think many of them require patches to the source  
code, although some might. Some like, PIL, need additional software  
installed to build (such as libjpeg for PIL).


What packages are you looking for?

Ronald




___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig




smime.p7s
Description: S/MIME cryptographic signature
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] issue on making python extension from C code

2007-08-16 Thread farshid

Hi ,

I am hitting this very strange issue that i am providing a wrapper  
for some hash method that is 192 bit or ( unsigned long long int  in  
c) .
when i invoke this function from other C code and i run the code it  
returns correct hash value , but when i compile it and install it  
with setup,py ,  the result is something totally different.
Is it that when python convert c code into ".so" file it changes data  
types of variables???  maybe a bug?


Thanks,
Farshid

here is the code
the method is wrapper for tiger method;
typedef unsigned long long int word64;
typedef unsigned long word32;
typedef unsigned char byte;

void tiger(byte*, word64, word64*);
PyObject *wrap_function(PyObject *self, PyObject *args)
{
word64 result[3];
char *command;
//  if (!PyArg_ParseTuple(args, "s",&command))
//  return NULL;
//printf("command is %s\n",command);
command = "abc";
tiger((byte*)command,strlen(command),result);
char new_str [48];
	 sprintf(new_str,"%08X%08X%08X%08X%08X%08X",(word32)(result[0]>>32), 
(word32)(result[0]),(word32)(result[1]>>32),(word32)(result[1]), 
(word32)(result[2]>>32),(word32)(result[2]));

 printf("inside wrap_function %s\n",new_str);
return Py_BuildValue("s",new_str,strlen(new_str));
}


___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig