-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
I am unable to build a PEX file as described in the documentation.
I am attempting to build the PEX file in a docker container for my version of Python (3.6). According to the Makefile, that version of Python is the default $PYVER. I come across multiple errors from the default $SPACY_EXTRAS and final packaging that point to Python 3.6 being incompatible.
My docker-compose.yml
version: '3.3'
services:
build:
image: python:3.6-bullseye
volumes:
- ./spaCy:/spacy
working_dir: /spacy
command: tail -f /dev/nullThe docker file exists in a directory with the SpaCy repo cloned into a folder spaCy ex:
- docker-compose.yml
- spaCy
| --- ... SpaCy repo root
After launching through a docker compose up -d I have to install the rust compiler following their instructions here.
Once the rust compiler is installed, run make in the working directory. This will result in the $SPACY_EXTRAS failing to build properly. For example, when attempting to build sudachipy, it fails with error: the configured Python interpreter version (3.6) is lower than PyO3's minimum supported version (3.7)
Even dropping the extras that I don't need still results in a failed build at the 'packaging' stage saying that Python3.6 is not supported.
If there is a different version of SpaCy that supports python3.6, or a different method of packaging, I would greatly appreciate being pointed in the correct direction.