-
Notifications
You must be signed in to change notification settings - Fork 428
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
Problems building with local source (neither git_url
nor path
practical)
#5045
Comments
I think I found a workaround with automatic temp commit on before conda build, but undoubtedly it's not nice. |
@mara004 Unfortunately this is unlikely to change, there would be too much guesswork happening on conda-build's part (would it only include staged changes? would it include unstaged changes? what about untracked changes? would conda-build need to implement all of these flavors of cloning a git repo?) and each alternative would be surprising/unexpected to somebody else. |
This comment was marked as outdated.
This comment was marked as outdated.
Hmm, thinking about this some more, I acknowledge this lies outside the regular use case, for all dynamic files should normally be generated within the conda-build call.1 I still find that including uncommitted changes would be better with development, and that conda is inflexible regarding file inclusion, but it is logical given the focus on feedstock-based instead of project-inline packaging. Footnotes
|
What happened?
Local source is not practically usable with conda, due to the following limitations of existing concepts:
path: ../..
copies all files, not just those in revision control. This is problematic if there are big generated dirs that should be excluded, then copying the source would take eternally. (Deleting all unneeded dirs prior to install is not applicable.)git_url: ../..
does not include uncommitted changes (see the docs).This is unsuitable/confusing for development, where you want to modify the source and rerun to test changes without committing.
Further, it is a problem if we want to include generated files for installation that are not under revision control.
We'd need a way to honor gitignore rules, while including uncommitted changes and having
git describe
info available.Even better would be a way to use a setuptools
MANIFEST.in
file defining the files to copy into the build dir.I can't see how to achieve this with conda-build ATM (if it were possible somehow, then the docs would be very obscure).
Conda Details
conda info
conda config
The text was updated successfully, but these errors were encountered: