-
Notifications
You must be signed in to change notification settings - Fork 725
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
Build from source: Cannot use custom compiled python #356
Comments
Upon further examination I find that the file
I am not sure where this is generated from. |
Solved using: bazelbuild/bazel#4815 (comment) However, I will keep this issue open for a little while for any further comments. |
Hi @anands-repo, glad you were able to get it working! I don't have any other comments on the fix and will defer to the relevant bazel issue. In general, I would recommend running DeepVariant using Docker for the simplest setup. If you are building from source because you want to experiment with changes to the codebase, I'd still recommend Docker. You can clone the DeepVariant repo, modify the source code, and build a Docker image with your changes using the provided Dockerfile. |
Hi @gunjanbaid Unfortunately I am not compiling for x86, but for IBM power, so most of the installation scripts need to be discarded, and packages need to be manually compiled from source using IBM's Advance Toolchain gcc compilers. I have finally gotten all bazel tests to complete as well as the build to complete. I was wondering whether you could explain one piece of the build files though - this is just out of curiosity. In build_release_binaries, there is a function that starts as follows - which seems to be performing a hack to fix something:
Would you be able to give a quick explanation of what the problem is? I understand what it does, but I do not understand why it is needed, or whether it is just for convenience. Thanks! |
I am trying to build DeepVariant from source, and trying to use a custom python installation rather than the standard one. However,
bazel test
fails because it tries to use the standard library python. The requisite python is accessible as "python" because it is in the PATH variable, but bazel seems to ignore that and looks for python in the standard location. I am not an expert in bazel by any means, so any help in how to get around this issue is greatly appreciated.Here is the command used for build (all necessary libraries have been compiled. I didn't use run-prereq.sh and build-prereq.sh, but I installed them manually).
Command used (this was edited into build_and_test.sh, and build_and_test.sh was run after the edits)
settings.sh was changed as follows:
Error trace:
I am running on a CentOS 7 docker container. I am trying to build DeepVariant 1.0 (the current github release).
The text was updated successfully, but these errors were encountered: