Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure 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
  • Meta
  • buck
  • Merge requests
  • !517

Update python pkg_resources to latest (18.5)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Mike Kaplinskiy requested to merge github/fork/mikekap/with_resource_stream into master Nov 17, 2015
  • Overview 34
  • Commits 1
  • Pipelines 0
  • Changes 30

This lets you use resource_stream in enter and exit, at least.

Fun note: turns out the python in-place config doesn't actually include the vendored pkg_resources in the PYTHONPATH. I didn't fix that in this change. It might be worth considering looking into in-place pex running instead of re-implementing pex, e.g. - in tp/py/.../pex/bin/pex.py:

    log('Running PEX file at %s with args %s' % (pex_builder.path(), args), v=options.verbosity)
    pex = PEX(pex_builder.path(), interpreter=pex_builder.interpreter)
    return pex.run(args=list(args))

Separately, as part of (a hope!) to import the new pex, I've renamed pex.py to make_pex.py to fix the name collision.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/mikekap/with_resource_stream