Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"parse_build_args.py" file parser arguments are not accessible anymore in "os.environ". #590

Closed
KelSolaar opened this issue Apr 3, 2019 · 6 comments

Comments

@KelSolaar
Copy link
Contributor

Hi,

I'm trying to update Rez from 2.16.0 to 2.28.0 and one of the first thing I noticed is my builds failing :)

We create parse_build_args.py files to support some custom build arguments with content for example as follows:

# -*- coding: utf-8 -*-
parser.add_argument(
    '--skip-code-formatting',
    action='store_true',
    help='Skips code formatting.')

and then in the build file (we use Fabric, thus fabfile.py), we do things like that:

    if not int(os.environ['__PARSE_ARG_SKIP_CODE_FORMATTING']):
        code_formatting()

Unfortunately the __PARSE_ARG_SKIP_CODE_FORMATTING is nowhere to be seen now.

Cheers,

Thomas

@instinct-vfx
Copy link
Contributor

Hey Thomas,

We ran into this too. Here is my report: #587

An here is a commit fixing this. PR is coming soon (Thanks Iraklis!) https://github.com/lambdaclan/rez/commit/af81b2492d297ad3350d1988bca47de0b4dcae7c

@KelSolaar
Copy link
Contributor Author

@instinct-vfx : Ah good to know, will follow closely the future PR!

@KelSolaar
Copy link
Contributor Author

I made a custom build with two cherry-picked commits from @lambdaclan and it fixed the issue for me.

Would be fantastic to have a PR for that so that we don't have to deploy a custom version, nothing really bad about it but it is extra maintenance steps.

Cheers,

Thomas

@nerdvegas
Copy link
Contributor

nerdvegas commented Apr 19, 2019 via email

@lambdaclan
Copy link
Contributor

@KelSolaar @nerdvegas I have just added a PR for the issue +1 more incoming!

@nerdvegas
Copy link
Contributor

I believe this is now fixed in 2.30.0, pls reopen if incorrect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants