opencv / opencv/opencv-python

Support PyPy

Open
#195 16 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.4k
Forks
1k
Avg merge
22h 17m
Merged PRs (30d)
3

Description

Would a PR to add PyPy to the linux, windows and macos 64 bit platforms overflow the build matrix? If not, I could try to submit one.

something like

https://bitbucket.org/pypy/pypy/downloads/pypy3.6-v7.1.1-linux64.tar.bz2 -o pypy.tar.bz2
mkdir -p pypy3
(cd pypy3; tar --strip-components=1 -xf ../pypy.tar.bz2)
export PATH=${PWD}/pypy3/bin:$PATH
echo "export PATH=${PWD}/pypy3/latest/bin:$PATH" >> $BASH_ENV
# Rebuild the _ssl module to accomodate for different openssl library
(cd pypy3/lib_pypy; pypy3 -c \
   'from _ssl_build import ffi; ffi.compile(verbose=False)' 2> /dev/null)
pypy3 -mensurepip

is what scipy uses to download and prep a pypy3 environment on circleci

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files or tests are named. Start by reviewing the Linux, Windows, and macOS 64-bit build matrix and the existing CI configuration, then compare it with the PyPy download and preparation commands in the issue. Done means determining whether PyPy can be added without exceeding the matrix and confirming successful builds on the requested platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.