From matti.picus at gmail.com Fri Apr 3 03:45:39 2020 From: matti.picus at gmail.com (Matti Picus) Date: Fri, 3 Apr 2020 10:45:39 +0300 Subject: [pypy-dev] pypy 7.3.1 rc1 is available, please test it out Message-ID: <0909e39a-f383-7c4b-b7b4-6616f87b5284@gmail.com> I have uploaded rc1 of the upcoming pypy v7.3.1 to https://bitbucket.org/pypy/pypy/downloads/ The sha256 hashes are here https://www.pypy.org/download.html#checksums The release notice is here https://doc.pypy.org/en/latest/release-v7.3.1.html Please download the tarball and try it out: make sure the correct version is reported and that any c-extension modules can be built and run as expected. As usual, any comments, corrections (especially typos) will be appreciated. Matti N.B: the downloads are still on bitbucket, we will be hosting them differently soon. The plan is to move/copy buildbot.pypy.org/mirror to buildbot.pypy.org/pypy, and serve that via PSF infrastructure as https://downloads.python.org/pypy. Help with redesigning a better index.html for that page are welcome, I thought of using the twisted server behind buildbot.pypy.org to template a nicer page, divided into sections by release and in reverse chronological order. From matti.picus at gmail.com Fri Apr 3 08:27:24 2020 From: matti.picus at gmail.com (Matti Picus) Date: Fri, 3 Apr 2020 15:27:24 +0300 Subject: [pypy-dev] pypy 7.3.1 rc1 is available, please test it out In-Reply-To: <0909e39a-f383-7c4b-b7b4-6616f87b5284@gmail.com> References: <0909e39a-f383-7c4b-b7b4-6616f87b5284@gmail.com> Message-ID: On 3/4/20 10:45 am, Matti Picus wrote: > I have uploaded rc1 of the upcoming pypy v7.3.1 to > https://bitbucket.org/pypy/pypy/downloads/ > > > The sha256 hashes are here https://www.pypy.org/download.html#checksums > > > The release notice is here > https://doc.pypy.org/en/latest/release-v7.3.1.html > > > Please download the tarball and try it out: make sure the correct > version is reported and that any c-extension modules can be built and > run as expected. As usual, any comments, corrections (especially > typos) will be appreciated. > > > Matti > Due to a problem with sys.pypy_version_info, I updated python 3.6 to rc2. Matti From gdube at expedia.com Sun Apr 5 09:41:51 2020 From: gdube at expedia.com (=?utf-8?B?R3VpbGxhdW1lIER1YsOp?=) Date: Sun, 5 Apr 2020 13:41:51 +0000 Subject: [pypy-dev] Scipy install/build fails Message-ID: <1FB2970A-6A21-4577-B7B5-E12E837B442C@sea.corp.expecn.com> Hi Pypy Dev I was wondering if scipy is supported by pypy3. I?ve been trying (and googling) for a few days. Any help you could provide would me much appreciated. See the attachment for the install log. Here?s my env: macOS Catalina 10.15.3 xcode is installed an up to date % cat ~/.zshrc [?] eval "$(pyenv init -)" pyenv global 3.6.5 export WORKON_HOME=~/.virtualenvs mkdir -p $WORKON_HOME . ~/.pyenv/versions/$(pyenv global)/bin/virtualenvwrapper.sh % pyenv --version pyenv 1.2.17 % pypy -V Python 3.6.9 (1608da62bfc71e8ac775121dd0b21bb72e61c6ea, Jan 08 2020, 22:53:09) [PyPy 7.3.0 with GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.16)] Intel? Math Kernal Library 2020 Update 1 for macOS* installed as administrator in /opt/intel ln -s /opt/intel/mkl/lib/libmkl_rt.dylib /Users//.virtualenvs//lib/libmkl_rt.dylib ln -s /usr/local/Cellar/pypy3/7.3.0/libexec/lib/libpypy3-c.dylib /Users//.virtualenvs//lib/libpypy3-c.dylib I?ve got a project with requirements.txt file Flask==1.0.2 Flask-Inputs==0.2.0 Jinja2==2.10 jsonschema==2.6.0 numpy>=1.14.4 pandas==0.23.0 pytest==3.6.0 python-dateutil==2.7.3 requests==2.18.4 scipy>=1.1.0 scikit-learn>=0.19.1 sklearn>=0.0 urllib3==1.22 Werkzeug==0.14.1 -- Guillaume Dub? Software Developer Expedia Group Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: install-scipy-console-output.txt URL: From matti.picus at gmail.com Mon Apr 6 13:10:52 2020 From: matti.picus at gmail.com (Matti Picus) Date: Mon, 6 Apr 2020 20:10:52 +0300 Subject: [pypy-dev] Scipy install/build fails In-Reply-To: <1FB2970A-6A21-4577-B7B5-E12E837B442C@sea.corp.expecn.com> References: <1FB2970A-6A21-4577-B7B5-E12E837B442C@sea.corp.expecn.com> Message-ID: An HTML attachment was scrubbed... URL: From matti.picus at gmail.com Tue Apr 7 02:48:40 2020 From: matti.picus at gmail.com (Matti Picus) Date: Tue, 7 Apr 2020 09:48:40 +0300 Subject: [pypy-dev] pypy 7.3.1 rc3 is available, please test it out Message-ID: <9a03d1c3-caab-d0f5-f1c8-33229a562cce@gmail.com> I have uploaded rc3 of the upcoming pypy v7.3.1 to https://bitbucket.org/pypy/pypy/downloads/ The sha256 hashes are here https://www.pypy.org/download.html#checksums The release notice is here https://doc.pypy.org/en/latest/release-v7.3.1.html Please download the tarball and try it out: make sure it all works as expected. Matti N.B: the downloads are still on bitbucket, we will be hosting them differently soon. From matti.picus at gmail.com Tue Apr 7 11:02:00 2020 From: matti.picus at gmail.com (Matti Picus) Date: Tue, 7 Apr 2020 18:02:00 +0300 Subject: [pypy-dev] Scipy install/build fails In-Reply-To: <815FC16F-A9AF-4EF4-9689-789FFADC4F8E@sea.corp.expecn.com> References: <1FB2970A-6A21-4577-B7B5-E12E837B442C@sea.corp.expecn.com> <815FC16F-A9AF-4EF4-9689-789FFADC4F8E@sea.corp.expecn.com> Message-ID: <6e905feb-f3a8-0acd-ffc7-6f7b74fcb5d6@gmail.com> On 7/4/20 5:44 pm, Guillaume Dub? wrote: > > Hi Matti, > > Thank you for the quick reply > > I?ve downloaded pypy-c-jit-latest-osx64.tar.bz2 and extracted in > /usr/local/pypy3-7.3.1 > > I?m getting the following error when I try to create a virtual > environment: > > % virtualenv -p /usr/local/pypy3-3.7.1/bin/pypy3 > > ... > > AttributeError: module \'cpyext\' has no attribute \'FunctionType\' > > ' > > -- > > Guillaume Dub? > > Software Developer > > Expedia Group Inc. > > Strange. What does pypy -c "import sys; print(sys.version)" show? Maybe you got a bad tarball? In the meantime I have uploaded rc3 for the release, could you try that out instead? https://bitbucket.org/pypy/pypy/downloads/pypy3.6-v7.3.1rc3-osx64.tar.bz2 From matt at vazor.com Tue Apr 7 23:10:48 2020 From: matt at vazor.com (Matt Billenstein) Date: Wed, 8 Apr 2020 03:10:48 +0000 Subject: [pypy-dev] Scipy install/build fails In-Reply-To: <6e905feb-f3a8-0acd-ffc7-6f7b74fcb5d6@gmail.com> References: <1FB2970A-6A21-4577-B7B5-E12E837B442C@sea.corp.expecn.com> <815FC16F-A9AF-4EF4-9689-789FFADC4F8E@sea.corp.expecn.com> <6e905feb-f3a8-0acd-ffc7-6f7b74fcb5d6@gmail.com> Message-ID: <20200408031048.GA8032@vazor.com> On Tue, Apr 07, 2020 at 06:02:00PM +0300, Matti Picus wrote: > > On 7/4/20 5:44 pm, Guillaume Dub? wrote: > > > > Hi Matti, > > > > Thank you for the quick reply > > > > I?ve downloaded pypy-c-jit-latest-osx64.tar.bz2 and extracted in > > /usr/local/pypy3-7.3.1 > > > > I?m getting the following error when I try to create a virtual > > environment: > > > > % virtualenv -p /usr/local/pypy3-3.7.1/bin/pypy3 I prefer pypy -m venv foo -- No telling where the virtualenv on your path is coming from. m -- Matt Billenstein matt at vazor.com http://www.vazor.com/ From pengyu.ut at gmail.com Wed Apr 8 17:08:20 2020 From: pengyu.ut at gmail.com (Peng Yu) Date: Wed, 8 Apr 2020 16:08:20 -0500 Subject: [pypy-dev] How to install pypy on Mac OS X? Message-ID: Hi, I see people recommend to use brew to install pypy on Mac OS X. https://stackoverflow.com/questions/20502471/how-to-use-pypy-on-a-mac $ ls -lg $(which pypy) lrwxr-xr-x 1 staff 31 2019/10/27-09:33:52 /usr/local/bin/pypy -> ../Cellar/pypy/7.1.1_1/bin/pypy $ ls -lg $(which pypy3) lrwxr-xr-x 1 staff 33 2019/10/27-09:20:07 /usr/local/bin/pypy3 -> ../Cellar/pypy3/7.1.1_1/bin/pypy3 But it seems that this installed pypy does not know python modules installed in this directory. /Library/Frameworks/Python.framework Is there a way to install pypy on Mac OS so that the modules installed in the above directory are accessible by pypy? Thanks. -- Regards, Peng From gdube at expedia.com Tue Apr 7 10:44:52 2020 From: gdube at expedia.com (=?utf-8?B?R3VpbGxhdW1lIER1YsOp?=) Date: Tue, 7 Apr 2020 14:44:52 +0000 Subject: [pypy-dev] Scipy install/build fails In-Reply-To: References: <1FB2970A-6A21-4577-B7B5-E12E837B442C@sea.corp.expecn.com> Message-ID: <815FC16F-A9AF-4EF4-9689-789FFADC4F8E@sea.corp.expecn.com> Hi Matti, Thank you for the quick reply I?ve downloaded pypy-c-jit-latest-osx64.tar.bz2 and extracted in /usr/local/pypy3-7.3.1 I?m getting the following error when I try to create a virtual environment: % virtualenv -p /usr/local/pypy3-3.7.1/bin/pypy3 RuntimeError: failed to query /usr/local/pypy3-3.7.1/bin/pypy3 with code 1 err: 'Traceback (most recent call last): File "/Users//.pyenv/versions/3.6.5/lib/python3.6/site-packages/virtualenv/discovery/py_info.py", line 16, in from distutils.command.install import SCHEME_KEYS File "/usr/local/pypy3-3.7.1/lib-python/3/distutils/command/install.py", line 9, in from distutils.core import Command File "/usr/local/pypy3-3.7.1/lib-python/3/distutils/core.py", line 17, in from distutils.cmd import Command File "/usr/local/pypy3-3.7.1/lib-python/3/distutils/cmd.py", line 9, in from distutils import util, dir_util, file_util, archive_util, dep_util File "/usr/local/pypy3-3.7.1/lib-python/3/distutils/archive_util.py", line 11, in import zipfile File "/usr/local/pypy3-3.7.1/lib-python/3/zipfile.py", line 13, in import shutil File "/usr/local/pypy3-3.7.1/lib-python/3/shutil.py", line 29, in import lzma File "/usr/local/pypy3-3.7.1/lib-python/3/lzma.py", line 27, in from _lzma import * File "/usr/local/pypy3-3.7.1/lib_pypy/_lzma.py", line 15, in from _lzma_cffi import ffi, lib as m File "/?", line 2, in anonymous File "/usr/local/pypy3-3.7.1/lib-python/3/pickle.py", line 1608, in Pickler.dispatch[cpyext.FunctionType] = Pickler.save_global AttributeError: module \'cpyext\' has no attribute \'FunctionType\' ' -- Guillaume Dub? Software Developer Expedia Group Inc. From: Matti Picus Date: Monday, April 6, 2020 at 1:11 PM To: Guillaume Dub? , "pypy-dev at python.org" Subject: Re: [pypy-dev] Scipy install/build fails On 5/4/20 4:41 pm, Guillaume Dub? via pypy-dev wrote: Hi Pypy Dev I was wondering if scipy is supported by pypy3. ... We are almost ready to release PyPy 7.3.1 with fixes that should allow scipy to work with pypy3. The latest nightly should work, could you try this one http://buildbot.pypy.org/nightly/py3.6/pypy-c-jit-latest-osx64.tar.bz2 Matti -------------- next part -------------- An HTML attachment was scrubbed... URL: From matti.picus at gmail.com Thu Apr 9 13:06:45 2020 From: matti.picus at gmail.com (Matti Picus) Date: Thu, 9 Apr 2020 20:06:45 +0300 Subject: [pypy-dev] How to install pypy on Mac OS X? In-Reply-To: References: Message-ID: <6c714a82-108d-e905-f602-d6af0903acf2@gmail.com> On 9/4/20 12:08 am, Peng Yu wrote: > Hi, > > > Is there a way to install pypy on Mac OS so that the modules installed > in the above directory are accessible by pypy? Thanks. > No. Think of what happens when you install python3.6 and python 3.7: they need separate locations for all the packages. Likewise, PyPy cannot re-use packages from other python installations. Matti From matti.picus at gmail.com Fri Apr 10 09:59:57 2020 From: matti.picus at gmail.com (Matti Picus) Date: Fri, 10 Apr 2020 16:59:57 +0300 Subject: [pypy-dev] PyPy 7.3.1 is out Message-ID: An HTML attachment was scrubbed... URL: From matti.picus at gmail.com Sun Apr 12 17:39:42 2020 From: matti.picus at gmail.com (Matti Picus) Date: Mon, 13 Apr 2020 00:39:42 +0300 Subject: [pypy-dev] Moving the canonical download link away from bitbucket Message-ID: Thanks to Maciej and Armin, we now have https;/bitbucket.pypy.org/pypy as a nicer index to https:/bitbucket.pypy.org/mirror, which is a mirror of the bitbucket-hosted downloads. The idea is that we will get the PSF to put a CDN in front of https;/bitbucket.pypy.org/pypy and host it as https://downloads.python.org/pypy. Any thoughts how to make the downloads page prettier? The Jinja2 template used to build the page lives at https://foss.heptapod.net/pypy/buildbot/blob/branch/default/master/templates/release.html, suggestions or PRs to improve it are more than welcome. Note the buildbot now can be accessed via https. Matti From matti.picus at gmail.com Mon Apr 13 04:41:38 2020 From: matti.picus at gmail.com (Matti Picus) Date: Mon, 13 Apr 2020 11:41:38 +0300 Subject: [pypy-dev] Moving the canonical download link away from bitbucket In-Reply-To: References: Message-ID: <4ca72db3-9bd2-d55d-1870-c38179907f49@gmail.com> An HTML attachment was scrubbed... URL: From matti.picus at gmail.com Mon Apr 13 04:41:48 2020 From: matti.picus at gmail.com (Matti Picus) Date: Mon, 13 Apr 2020 11:41:48 +0300 Subject: [pypy-dev] Moving the canonical download link away from bitbucket In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: From steven.mathews9000 at gmail.com Mon Apr 13 13:55:34 2020 From: steven.mathews9000 at gmail.com (Steven Mathews) Date: Mon, 13 Apr 2020 13:55:34 -0400 Subject: [pypy-dev] windows 64 bit Message-ID: I saw pypy is windows 32bit. Does that mean my code won't be able to use 32GB of RAM, only 4GB ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From william.leslie.ttg at gmail.com Tue Apr 14 06:45:14 2020 From: william.leslie.ttg at gmail.com (William ML Leslie) Date: Tue, 14 Apr 2020 20:45:14 +1000 Subject: [pypy-dev] windows 64 bit In-Reply-To: References: Message-ID: On Tue, 14 Apr 2020, 4:35 pm Steven Mathews, wrote: > I saw pypy is windows 32bit. > > Does that mean my code won't be able to use 32GB of RAM, only 4GB ? > Correct. For more detail, please see the FAQ entry here: https://doc.pypy.org/en/latest/faq.html#what-is-needed-for-windows-64-support-of-pypy -------------- next part -------------- An HTML attachment was scrubbed... URL: From matti.picus at gmail.com Wed Apr 15 15:22:34 2020 From: matti.picus at gmail.com (Matti Picus) Date: Wed, 15 Apr 2020 22:22:34 +0300 Subject: [pypy-dev] Fwd: foss.heptapod.net: major downtime next Monday for upgrade to 0.12 In-Reply-To: <38ad8f9d-9e3d-4fe3-3559-368aa3c4a6cc@octobus.net> References: <38ad8f9d-9e3d-4fe3-3559-368aa3c4a6cc@octobus.net> Message-ID: <1cc86422-02b9-67dd-4ded-32a110b3bcc9@gmail.com> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 834 bytes Desc: not available URL: From dholth at gmail.com Wed Apr 22 22:31:03 2020 From: dholth at gmail.com (Daniel Holth) Date: Wed, 22 Apr 2020 22:31:03 -0400 Subject: [pypy-dev] cffi embedding interface uwsgi plugin Message-ID: I'm playing with the cffi embedding interface. I dusted off the uwsgi pypy plugin and began porting it to the new interface. I'm very impressed at how little C is required to make it work. The Python code embedded in the module, that attaches Python functions to uwsgi's plugin interface with @ffi.def_extern(), could be replaced with "import " and you could iterate on this without (the 1-second of) recompiling each time. A suitably motivated person could build an ASGI server this way. Need to look up how to initialize virtualenv at the Python level. I had more success with pypy 7.1.1 which seemed to be finding the virtualenv based on the working directory. Currently pypy 7.3.1 is having trouble finding the os module in pypy_init_home. And this patch https://foss.heptapod.net/pypy/cffi/issues/450 is needed to get rid of a warning. When it works the cool demo would be to compile suffixed variants of the plugin for pypy and cpython, having one uwsgi emperor mange servers in both languages. It's at https://github.com/unbit/uwsgi/pull/2146/files Cheers, Daniel Holth -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.rigo at gmail.com Thu Apr 23 03:15:57 2020 From: armin.rigo at gmail.com (Armin Rigo) Date: Thu, 23 Apr 2020 09:15:57 +0200 Subject: [pypy-dev] cffi embedding interface uwsgi plugin In-Reply-To: References: Message-ID: Hi Daniel, On Thu, 23 Apr 2020 at 09:08, Daniel Holth wrote: > Need to look up how to initialize virtualenv at the Python level. I had more success with pypy 7.1.1 which seemed to be finding the virtualenv based on the working directory. Currently pypy 7.3.1 is having trouble finding the os module in pypy_init_home. And this patch https://foss.heptapod.net/pypy/cffi/issues/450 is needed to get rid of a warning. Can you give a reproducer for the problem you see in finding the os module in pypy_init_home? Thanks! A bient?t, Armin. From dholth at gmail.com Thu Apr 23 10:05:11 2020 From: dholth at gmail.com (Daniel Holth) Date: Thu, 23 Apr 2020 10:05:11 -0400 Subject: [pypy-dev] cffi embedding interface uwsgi plugin In-Reply-To: References: Message-ID: It's in the cffi issue tracker ? On Thu, Apr 23, 2020, 3:16 AM Armin Rigo wrote: > Hi Daniel, > > On Thu, 23 Apr 2020 at 09:08, Daniel Holth wrote: > > Need to look up how to initialize virtualenv at the Python level. I had > more success with pypy 7.1.1 which seemed to be finding the virtualenv > based on the working directory. Currently pypy 7.3.1 is having trouble > finding the os module in pypy_init_home. And this patch > https://foss.heptapod.net/pypy/cffi/issues/450 is needed to get rid of a > warning. > > Can you give a reproducer for the problem you see in finding the os > module in pypy_init_home? Thanks! > > > A bient?t, > > Armin. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nekomaho at gmail.com Mon Apr 27 23:21:26 2020 From: nekomaho at gmail.com (c-yan) Date: Tue, 28 Apr 2020 12:21:26 +0900 Subject: [pypy-dev] PyPy 7.3.1 is out In-Reply-To: References: Message-ID: I am impressed with the very fast list comprehension in PyPy 7.3.1. Thanks to all the contributors. In the competitive programming world, list comprehension, recursive functions, and string concatenation were known as three slow problems of PyPy, but one of them has been broken.