Skip to content

How to build a wheel for Python 3.11? #7

@seperman

Description

@seperman

Hi @ColdHeat
I'm very interested in using Starlark for sandboxing Python.
Is there any way you can guide me to get it up and running for Python 3.11?

When I try to install it via pip:

  subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ, **env))
  File "/home/user/.pyenv/versions/3.11.4/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('go', 'build', '-buildmode=c-shared', '-o', '/home/user/Workspace/tools/pystarlark/build/lib.linux-x86_64-cpython-311/pystarlark/starlark.cpython-311-x86_64-linux-gnu.so', '-ldflags=-s -w')' returned non-zero exit status 2

I cloned the repo and upgraded setuptools-golang and cffi versions to the latest and I still get the same error.
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions