AcademySoftwareFoundation / rez

An integrated package configuration, build and deployment system for software
https://rez.readthedocs.io
Apache License 2.0
920 stars 329 forks source link

rez-bind os requires arch #1718

Open cfxegbert opened 3 months ago

cfxegbert commented 3 months ago

When running rez-bind os the resulting package.py includes a requirement on arch-amd64. A operating system can run on multiple architectures. The requirement on arch should be relaxed.

Environment

To Reproduce

  1. My rezconfig.py contains the following mapping
    platform_map = {
        "os": {
            r"(osx|windows)-(\d+)\..*": r"\1-\2",
        },
        "arch": {"AMD64": "amd64"},
    }
  2. rez-bind os

Expected behavior In the os/windows-10/package.py

requires = [
    'platform-windows'
]

Actual behavior In the os/windows-10/package.py

requires = [
    'platform-windows',
    'arch-amd64'
]