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

rez-release does not copy @include() scripts to packages dir #510

Closed
willjp opened this issue Apr 26, 2018 · 4 comments
Closed

rez-release does not copy @include() scripts to packages dir #510

willjp opened this issue Apr 26, 2018 · 4 comments

Comments

@willjp
Copy link
Contributor

willjp commented Apr 26, 2018

Hey Guys

When I rez-release a package that uses the @include decorator, the included
script does not get copied to the release packages directory.



I have noticed that when I use rez-build -i a subdirectory .rez/include is
created with the created package, and that script is read when rez-env is run.

This directory does not get created in released packages. When I try to run a
rez-env from a released package, even if the included script is on the
package_definition_python_path , the rez-env fails because it cannot find the
included script.

I am not certain if this is an issue with rez-release, or an issue with my workflow
( and I apologize if this is the latter ). Either way, I was wondering if anyone
had any tips for working with @include in conjunction with rez-release . Thank you
so much again,

Will

@willjp
Copy link
Contributor Author

willjp commented Apr 28, 2018

I've been able to fix this, by modifying my rez-install's code. This is my understanding:

# ============
# rez-build -i
# ============

rezplugins.build_process.local.LocalBuildProcess().build()
    # calls    `self.visit_variants( self._build_ariant, ...)` to perform build
    # if install   `self._install_include_modules(install_path)`

# ===========
# rez-release
# ===========

rezplugins.build_process.local.LocalBuildProcess().release()
    # calls   `self.visit_variants( self._release_variant )`  for each variant
        # calls   `self._build_system.build()` to build each variant
        # nothing calls `self._install_include_modules(install_path)`

Adding self._install_include_modules(install_path) to rezplugins.build_process.local.LocalBuildProcess()._release_variant() under it's if install: fixes this issue for me.

I can make a pull request if that is helpful.

  • Will

@nerdvegas
Copy link
Contributor

nerdvegas commented May 10, 2018 via email

@willjp
Copy link
Contributor Author

willjp commented May 11, 2018

No problem! Thanks for writing all of this, and thanks for sharing :)

@nerdvegas
Copy link
Contributor

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

2 participants