Skip to content

rez-bind python & rez-release depends-on-python: should python package be released? #1331

@alexey-pelykh

Description

@alexey-pelykh

It's more of the what-is-by-design question. The situation is as follows:

  1. by default, rez binds python (and os, arch, platform) package to local_packages_path
  2. when a package that depends on python is released, the process assumes that all dependencies are released as well, thus forcing to release locally-bound python, os, arch, platform
  3. rez-pip by default looks for the latest python & pip packages and corresponding versions may not be present locally

Seems like a collision.

Workaround attempt no. 1: Specify the exact version for rez-pip that matches locally-bound python

Won't help since the same version can be released from different arch, producing

The following package conflicts occurred: (arch-AMD64 <--!--> arch-x86_64)

Workaround attempt no. 2: Remove all published python package versions, forcing it to use locally-bound

  • would help for rez-pip
  • would help with rez env resolving unless --no-local is specified
  • will cause issue with rez-release since not all dependencies are published

Questions:

  • by design, what should be the intended approach?
  • rez-bind is going to be deprecated (so I've heard)?
  • should all possible combinations of python-os-arch-platform be published to shared (cross-platform) rez packages repo?

Thanks in advance for the guidance!

cc @nerdvegas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions