Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-27 Thread Amit Saha
On Wed, Mar 27, 2013 at 11:05 PM, Sean Carolan wrote: > >> But, where did you get the idea that you could build Python RPMs using >> $python setup.py bdist_rpm ? I thought that was only limited to >> building RPMs for python packages (including extensions), but not the >> Python interpreter itself

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-27 Thread Sean Carolan
> But, where did you get the idea that you could build Python RPMs using > $python setup.py bdist_rpm ? I thought that was only limited to > building RPMs for python packages (including extensions), but not the > Python interpreter itself. Please correct me if i am wrong. > Ok, so it's only for mo

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Amit Saha
On Wed, Mar 27, 2013 at 7:32 AM, Sean Carolan wrote: > >> Given that most folks on this list are only learning Python its pretty >> unlikely that they are building bespoke RPMs... >> >> You might find more experience of RPM building on the general Python >> mailing list/newsgroup. > > > Sorry 'bou

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Amit Saha
On Wed, Mar 27, 2013 at 7:32 AM, Sean Carolan wrote: > >> Given that most folks on this list are only learning Python its pretty >> unlikely that they are building bespoke RPMs... >> >> You might find more experience of RPM building on the general Python >> mailing list/newsgroup. > > > Sorry 'bou

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Prasad, Ramit
Sean Carolan wrote: > [Alan Gauld wrote:] > > Given that most folks on this list are only learning Python its pretty > > unlikely that they are building > > bespoke RPMs... > > > > You might find more experience of RPM building on the general Python > > mailing list/newsgroup. > > Sorry 'bout t

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Sean Carolan
> Given that most folks on this list are only learning Python its pretty > unlikely that they are building bespoke RPMs... > > You might find more experience of RPM building on the general Python > mailing list/newsgroup. Sorry 'bout that. I'll follow up with the bug report and possibly the gene

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Alan Gauld
On 26/03/13 19:04, Sean Carolan wrote: Has anyone on this list successfully built a python 2.7 RPM using this command? python2.7 setup.py bdist_rpm Given that most folks on this list are only learning Python its pretty unlikely that they are building bespoke RPMs... You might find more expe

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Sean Carolan
> If so, what was your secret? > > I tried running this again with strace, and it looks like it's finding the pyconfig.h file: open("/usr/local/include/python2.7/pyconfig.h", O_RDONLY) = 4 read(4, "/* pyconfig.h. Generated from p"..., 4096) = 4096 stat("pyconfig.h", {st_mode=S_IFREG|0664, st_size

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Sean Carolan
> > http://hg.python.org/cpython/file/d321885ff8f3/Lib/distutils/command/bdist_rpm.py#l23 > No dice. [scarolan@titania:~/Python-2.7.3]$ alias | grep python alias python='/usr/local/bin/python2.7' [scarolan@titania:~/Python-2.7.3]$ /usr/local/bin/python2.7 setup.py bdist_rpm error: pyconfig.h: No

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread eryksun
On Tue, Mar 26, 2013 at 11:18 AM, Sean Carolan wrote: > I've tried it with python24, python25 and python27 and all of them give the > same error. After looking at the source, I think the option python=python2.7 may solve the problem. http://hg.python.org/cpython/file/d321885ff8f3/Lib/distutils/c

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Walter Prins
Hi, On 26 March 2013 16:54, Hugo Arts wrote: > On Tue, Mar 26, 2013 at 3:18 PM, Sean Carolan wrote: > >> >> Could it be that it is taking the system python executable which is >>> probably 2.4? >>> >>> -Amit. >> >> >> I've tried it with python24, python25 and python27 and all of them give >>

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Sean Carolan
> What it looks like to me is that while you run (using python 2.7): > > > python27 setup.py bdist_rpm > > doing that generates a temporary bash script, which in turn runs: > > > python setup.py build > Yea, I checked this, and /usr/local/bin/python is just a symlink pointing at /usr/local/bin/py

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Hugo Arts
On Tue, Mar 26, 2013 at 3:18 PM, Sean Carolan wrote: > > Could it be that it is taking the system python executable which is >> probably 2.4? >> >> -Amit. > > > I've tried it with python24, python25 and python27 and all of them give > the same error. > > What it looks like to me is that while yo

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Sean Carolan
Ok, so I'm now attempting a "clean room" installation using Python 2.7.3 to build the RPM. Here's my installation command: ./configure --with-zlib=/usr/include; make; sudo make install But the bdist_rpm setup command fails: [scarolan@titania:~/Python-2.7.3]$ python2.7 setup.py bdist_rpm error:

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Sean Carolan
> Could it be that it is taking the system python executable which is > probably 2.4? > > -Amit. I've tried it with python24, python25 and python27 and all of them give the same error. ___ Tutor maillist - Tutor@python.org To unsubscribe or change sub

Re: [Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Amit Saha
On Wed, Mar 27, 2013 at 12:55 AM, Sean Carolan wrote: > I'm attempting to use setup.py to build an RPM, but ran into this error: > > [scarolan@cobbler:~/rpmbuild/BUILD/Python-2.7.3]$ python27 setup.py > bdist_rpm > > File "setup.py", line 361 > with open(tmpfile) as fp: > ^ > Syn

[Tutor] Building Python 2.7.3 on RHEL 5.8 x86_64 -- Syntax Error

2013-03-26 Thread Sean Carolan
I'm attempting to use setup.py to build an RPM, but ran into this error: [scarolan@cobbler:~/rpmbuild/BUILD/Python-2.7.3]$ python27 setup.py bdist_rpm File "setup.py", line 361 with open(tmpfile) as fp: ^ SyntaxError: invalid syntax error: Bad exit status from /var/tmp/rpm-tmp.8