Question on installing pypy and the source code ..
![](https://secure.gravatar.com/avatar/a9a5ae4e2222d1920fb010ea21a92d31.jpg?s=120&d=mm&r=g)
Hi Developers .. I have been looking at trying to install the pypy interpreter from source code as suggested from the: http://pypy.org website for the very first time. We don't have any previous version of the pypy interpreter installed on our systems at Cisco .. I ran into a bit of an issue in trying to follow the instructions. As was suggested I tried to use the "building from Source" code instructions as I wanted to build it from scratch as we have a somewhat unique environment, so it is usually better to try and build the tools from the source code .. All the build instructions seem to assume that you have a previous version of pypy already installed, in my case, I don't have a previous version of pypy already installed and am trying to create the first one.. :( .. I there a set of instructions for very first time builders ?? Thanks for any help that you can offer .. Cheers Dave W David Watson STEP Tools Master Cisco System<http://www.cisco.com/> 2000 Inovation Drive Ottawa, On K2W 3E8 PH: 613 254-3377 [cid:image001.jpg@01CDC1A7.C1732360]
![](https://secure.gravatar.com/avatar/23eedc66bbbaade188a7dd99db14eaaf.jpg?s=120&d=mm&r=g)
On Thu, 2013-10-31 at 16:10 +0000, Dave Watson (davewats) wrote:
I there a set of instructions for very first time builders ??
Hi, I think that you are misinterpreting the instructions on the website. They don't imply that you already have *PyPy* installed, but they do imply that you have *some* implementation of Python installed, such as CPython, which is probably already the case for you. So if you want to re-build PyPy completely, you need to translate it using some pre-existing Python interpreter, such as CPython, or PyPy itself, and then build it, for which you need a C compiler. Once you've got the PyPy package, you can use virtualenv, so that you can easily switch between different versions and install additional packages using pip. HTH! -- Sincerely yours, Yury V. Zaytsev
![](https://secure.gravatar.com/avatar/a9a5ae4e2222d1920fb010ea21a92d31.jpg?s=120&d=mm&r=g)
Hi Yury .. I have just been looking at the pypy internals, and I have been trying to find out where I can add a new library directory for linking/includes, rather than depending on the system libraries, which in my case don't have the required dependent libs, so I will need to add them in order to get pypy to compile .. I was not able to find a convenient place to add in a additional Library path .. I found the variable LIB_ROOT, that may be possible to modify, but it didn't look like it was a great location to modify .. I was wondering I you or someone else might know of a good place that would allow the required alternative library location to be added to the configuration .. Thanks for any help that you can offer .. Cheers Dave W. -----Original Message----- From: Yury V. Zaytsev [mailto:yury@shurup.com] Sent: Thursday, October 31, 2013 12:32 PM To: Dave Watson (davewats) Cc: pypy-dev@python.org; Steve Marsh (stevmars); Gilbert Ramirez (gilramir) Subject: Re: [pypy-dev] Question on installing pypy and the source code .. On Thu, 2013-10-31 at 16:10 +0000, Dave Watson (davewats) wrote:
I there a set of instructions for very first time builders ??
Hi, I think that you are misinterpreting the instructions on the website. They don't imply that you already have *PyPy* installed, but they do imply that you have *some* implementation of Python installed, such as CPython, which is probably already the case for you. So if you want to re-build PyPy completely, you need to translate it using some pre-existing Python interpreter, such as CPython, or PyPy itself, and then build it, for which you need a C compiler. Once you've got the PyPy package, you can use virtualenv, so that you can easily switch between different versions and install additional packages using pip. HTH! -- Sincerely yours, Yury V. Zaytsev
![](https://secure.gravatar.com/avatar/23eedc66bbbaade188a7dd99db14eaaf.jpg?s=120&d=mm&r=g)
On Thu, 2013-10-31 at 19:10 +0000, Dave Watson (davewats) wrote:
I was wondering I you or someone else might know of a good place that would allow the required alternative library location to be added to the configuration ..
I think that the easiest way to go is to manipulate CFLAGS and LDFLAGS directly. Just export them and they should be picked up automatically. If you have a specific problem, please post the raw error messages, otherwise, it's only possible to offer very generic suggestions. -- Sincerely yours, Yury V. Zaytsev
![](https://secure.gravatar.com/avatar/a9a5ae4e2222d1920fb010ea21a92d31.jpg?s=120&d=mm&r=g)
Hi Yury .. Thanks for the info .. I will try to see I can add the appropriate includes/libs in via the CFLAGS and LFLAGS .. Thanks again for your help .. Cheers Dave W. -----Original Message----- From: Yury V. Zaytsev [mailto:yury@shurup.com] Sent: Thursday, October 31, 2013 6:06 PM To: Dave Watson (davewats) Cc: pypy-dev@python.org; Steve Marsh (stevmars); Gilbert Ramirez (gilramir) Subject: RE: [pypy-dev] Question on installing pypy and the source code .. On Thu, 2013-10-31 at 19:10 +0000, Dave Watson (davewats) wrote:
I was wondering I you or someone else might know of a good place that would allow the required alternative library location to be added to the configuration ..
I think that the easiest way to go is to manipulate CFLAGS and LDFLAGS directly. Just export them and they should be picked up automatically. If you have a specific problem, please post the raw error messages, otherwise, it's only possible to offer very generic suggestions. -- Sincerely yours, Yury V. Zaytsev
participants (2)
-
Dave Watson (davewats)
-
Yury V. Zaytsev