Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pypy pypy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 673
    • Issues 673
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyPy
  • pypypypy
  • Issues
  • #3582
Closed
Open
Created Oct 23, 2021 by David Hewitt@davidhewitt

Wrong LIBDIR reported on PyPy 3.8

The location of sysconfigdata.py has moved from <install dir>/lib_pypy/_sysconfigdata.py to <install_dir>/lib/pypy3.8/_sysconfigdata.py. As a result PyPy 3.8 reports sysconfig.get_config_var("LIBDIR") to be the non-existent directory <install dir>/lib/bin.

I think means that an extra os.path.dirname() call is needed to resolve the pypy install dir correctly on the Python 3.8 branch.

diff -r e558566298b2 lib_pypy/_sysconfigdata.py
--- a/lib_pypy/_sysconfigdata.py        Sat Oct 23 14:10:55 2021 +0200
+++ b/lib_pypy/_sysconfigdata.py        Sat Oct 23 22:42:44 2021 +0100
@@ -6,7 +6,7 @@

 so_ext = _imp.extension_suffixes()[0]

-mybase = os.path.dirname(os.path.dirname(__file__))
+mybase = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))

 # FIXME: The compiler-specific values should be exported from the build,
 # perhaps via a special __pypy__._sysconfigdata module?

... I tried hard to figure out a way to open this fix as a merge request, but for the life of me couldn't figure out how.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking