Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - python 3.2: (5 Items)
   
python 3.2  
Hi,

  I just compiled Python 3.2 on 6.5. Just a few tweaks such as including header files (alloca, unistd, more for open() 
and -DNO_MALLINFO. Is there a chance to see it included in pkgsrc, so all the dependencies will work out? It would be an
 upgraded of 3 years of development on python over the included python 2.5.2.

  Sebastian
Re: python 3.2  
On Fri, Apr 22, 2011 at 01:59:45PM -0400, Sebastian Fischmeister wrote:
> Hi,
> 
>   I just compiled Python 3.2 on 6.5. Just a few tweaks such as including
> header files (alloca, unistd, more for open() and -DNO_MALLINFO. Is
> there a chance to see it included in pkgsrc, so all the dependencies
> will work out? It would be an upgraded of 3 years of development on
> python over the included python 2.5.2.
> 
>   Sebastian

Can you attach the diffs?

Thanks,

-seanb
Re: python 3.2  
I didn't really clean it up, but it gives you an idea. Add this to Include/Python.h:

#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h> 

Compile with

CC=qcc CFLAGS=-DNO_MALLINFO ./configure
make 			

  Sebastian

On 2011-04-25, at 1:32 PM, Sean Boudreau wrote:

> On Fri, Apr 22, 2011 at 01:59:45PM -0400, Sebastian Fischmeister wrote:
>> Hi,
>> 
>>  I just compiled Python 3.2 on 6.5. Just a few tweaks such as including
>> header files (alloca, unistd, more for open() and -DNO_MALLINFO. Is
>> there a chance to see it included in pkgsrc, so all the dependencies
>> will work out? It would be an upgraded of 3 years of development on
>> python over the included python 2.5.2.
>> 
>>  Sebastian
> 
> Can you attach the diffs?
> 
> Thanks,
> 
> -seanb
> 
> 
> 
> _______________________________________________
> 
> PkgInfo
> http://community.qnx.com/sf/go/post85219
> 
Re: python 3.2  
pkgsrc has imported 3.1.  Did you run into this issue when building?

Traceback (most recent call last):
  File "./setup.py", line 1852, in <module>
    main()
  File "./setup.py", line 1847, in main
    "Tools/scripts/2to3-3.1"]
  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/core.py", line 
149, in setup
    dist.run_commands()
  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/dist.py", line 
919, in run_commands
    self.run_command(cmd)
  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/dist.py", line 
938, in run_command
    cmd_obj.run()
  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/command/build.py"
, line 128, in run
    self.run_command(cmd_name)
  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/cmd.py", line 315
, in run_command
    self.distribution.run_command(command)
  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/dist.py", line 
938, in run_command
    cmd_obj.run()
  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/command/
build_scripts.py", line 53, in run
    self.copy_scripts()
  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/command/
build_scripts.py", line 110, in copy_scripts
    'surrogateescape')
TypeError: must be string, not None

-seanb

On Mon, Apr 25, 2011 at 01:57:20PM -0400, Sebastian Fischmeister wrote:
> I didn't really clean it up, but it gives you an idea. Add this to
> Include/Python.h:
> 
> #include <limits.h>
> #include <sys/types.h>
> #include <sys/stat.h>
> #include <fcntl.h> 
> 
> Compile with
> 
> CC=qcc CFLAGS=-DNO_MALLINFO ./configure
> make 			
> 
>   Sebastian
> 
> On 2011-04-25, at 1:32 PM, Sean Boudreau wrote:
> 
> > On Fri, Apr 22, 2011 at 01:59:45PM -0400, Sebastian Fischmeister
> wrote:
> >> Hi,
> >> 
> >>  I just compiled Python 3.2 on 6.5. Just a few tweaks such as
> including
> >> header files (alloca, unistd, more for open() and -DNO_MALLINFO. Is
> >> there a chance to see it included in pkgsrc, so all the dependencies
> >> will work out? It would be an upgraded of 3 years of development on
> >> python over the included python 2.5.2.
> >> 
> >>  Sebastian
> > 
> > Can you attach the diffs?
> > 
> > Thanks,
> > 
> > -seanb
> > 
> > 
> > 
> > _______________________________________________
> > 
> > PkgInfo
> > http://community.qnx.com/sf/go/post85219
> > 
> 
> 
> 
> 
> _______________________________________________
> 
> PkgInfo
> http://community.qnx.com/sf/go/post85220
> 
Re: python 3.2  
Not that I remember. But I was building python 3.2 and not 3.1.4.

  Sebastian

On 2011-08-17, at 9:44 AM, Sean Boudreau wrote:

> 
> pkgsrc has imported 3.1.  Did you run into this issue when building?
> 
> Traceback (most recent call last):
>  File "./setup.py", line 1852, in <module>
>    main()
>  File "./setup.py", line 1847, in main
>    "Tools/scripts/2to3-3.1"]
>  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/core.py", line 
149, in setup
>    dist.run_commands()
>  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/dist.py", line 
919, in run_commands
>    self.run_command(cmd)
>  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/dist.py", line 
938, in run_command
>    cmd_obj.run()
>  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/command/build.py
", line 128, in run
>    self.run_command(cmd_name)
>  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/cmd.py", line 
315, in run_command
>    self.distribution.run_command(command)
>  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/dist.py", line 
938, in run_command
>    cmd_obj.run()
>  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/command/
build_scripts.py", line 53, in run
>    self.copy_scripts()
>  File "/home/seanb/svn/community/pkgsrc/HEAD_650/pkgsrc/lang/python31/work/Python-3.1.4/Lib/distutils/command/
build_scripts.py", line 110, in copy_scripts
>    'surrogateescape')
> TypeError: must be string, not None
> 
> -seanb
> 
> On Mon, Apr 25, 2011 at 01:57:20PM -0400, Sebastian Fischmeister wrote:
>> I didn't really clean it up, but it gives you an idea. Add this to
>> Include/Python.h:
>> 
>> #include <limits.h>
>> #include <sys/types.h>
>> #include <sys/stat.h>
>> #include <fcntl.h> 
>> 
>> Compile with
>> 
>> CC=qcc CFLAGS=-DNO_MALLINFO ./configure
>> make 			
>> 
>>  Sebastian
>> 
>> On 2011-04-25, at 1:32 PM, Sean Boudreau wrote:
>> 
>>> On Fri, Apr 22, 2011 at 01:59:45PM -0400, Sebastian Fischmeister
>> wrote:
>>>> Hi,
>>>> 
>>>> I just compiled Python 3.2 on 6.5. Just a few tweaks such as
>> including
>>>> header files (alloca, unistd, more for open() and -DNO_MALLINFO. Is
>>>> there a chance to see it included in pkgsrc, so all the dependencies
>>>> will work out? It would be an upgraded of 3 years of development on
>>>> python over the included python 2.5.2.
>>>> 
>>>> Sebastian
>>> 
>>> Can you attach the diffs?
>>> 
>>> Thanks,
>>> 
>>> -seanb
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> 
>>> PkgInfo
>>> http://community.qnx.com/sf/go/post85219
>>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 
>> PkgInfo
>> http://community.qnx.com/sf/go/post85220
>> 
> 
> 
> 
> _______________________________________________
> 
> PkgInfo
> http://community.qnx.com/sf/go/post88156
>