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

Update cyvcf2 to 0.10.2 #11464

Closed
wants to merge 10 commits into from
Closed

Conversation

epruesse
Copy link
Member

@epruesse epruesse commented Oct 21, 2018

Update cyvcf2: 0.10.00.10.2


Package Info | Recipe Folder | Upstream Home | Upstream Releases


This pull request was automatically generated by bioconda-utils.

@epruesse epruesse added the autobump Automatic Version Update label Oct 21, 2018
@epruesse
Copy link
Member Author

MacOS fails with

clang: error: linker command failed with exit code 1 (use -v to see invocation)
warning: cyvcf2/cyvcf2.pxd:26:16: Declarations should not be declared inline.
warning: cyvcf2/cyvcf2.pxd:188:14: 'BCF_HT_FLAG' redeclared 
warning: cyvcf2/cyvcf2.pxd:276:30: Declarations should not be declared inline.
error: command 'clang' failed with exit status 1

ping @vladsaveliev - can you take a look at this?

@vladsavelyev
Copy link
Member

Hi @epruesse,

Looks like the crypt is not available on macos. Removing it helps on my mac and I don't see any other problems with the installation. Following up on the cyvcf2 issue: brentp/cyvcf2#91

Vlad

brentp added a commit to brentp/cyvcf2 that referenced this pull request Oct 25, 2018
brentp added a commit to brentp/cyvcf2 that referenced this pull request Oct 25, 2018
@brentp
Copy link
Contributor

brentp commented Oct 25, 2018

I just tagged v0.10.2 which makes the change suggested by @vladsaveliev please give that a try.
thanks for updating the recipe!

@epruesse epruesse changed the title Update cyvcf2 to 0.10.1 Update cyvcf2 to 0.10.2 Oct 26, 2018
@epruesse epruesse closed this Oct 26, 2018
@epruesse epruesse reopened this Oct 26, 2018
@brentp
Copy link
Contributor

brentp commented Oct 26, 2018

cyvcf2 recently changed to include htslib as a submodule.
not sure how to add that to the recipe:
git submodule update --init should do it, but I thnk it downloads a tag...

@vladsavelyev
Copy link
Member

Right, git submodule update --init should help, but should we try to add htslib as a conda dependency? Will try

@vladsavelyev
Copy link
Member

Nope, htslib as a dependency errors:

ImportError: dlopen(/Users/vsaveliev/tmp/cyvcf2/miniconda/envs/cyvcf2_0102/lib/python3.6/site-packages/cyvcf2/cyvcf2.cpython-36m-darwin.so, 2): Symbol not found: _bcf_float_missing

By the way @brentp, the recipe downloads the release tarball from https://github.com/brentp/cyvcf2/releases which doesn't contain htslib source. Can switch to pulling a tag here, but you might want to add htslib source into the tarball anyway?

@brentp
Copy link
Contributor

brentp commented Oct 27, 2018

By the way @brentp, the recipe downloads the release tarball from https://github.com/brentp/cyvcf2/releases which doesn't contain htslib source. Can switch to pulling a tag here, but you might want to add htslib source into the tarball anyway?

that is automtically generated by github. is there a way to adjust it?

@druvus druvus closed this Oct 27, 2018
@druvus druvus reopened this Oct 27, 2018
@vladsavelyev
Copy link
Member

Can't figure out a way to make GitHub clone recursively in releases... I think the only way is to generate a tarball with:

python setup.py sdist

which will go into dist/cyvcf2-0.10.2.tar.gz, and upload it instead

@epruesse
Copy link
Member Author

@brentp You can build and upload artifacts from Travis using the releases deployment provider. See e.g. https://github.com/epruesse/SINA/blob/master/.travis.yml

I’m not sure about htslib as part of your sources. It seems common, but not really pretty. Can’t we pull that in as a package?

@brentp
Copy link
Contributor

brentp commented Oct 28, 2018

I include htslib to ease installation outside of conda, so it would probably be best to use the bioconda version of conda if possible. I'm happy to help facilitate that if I can, but haven't had time to dig into improving the packaging on my end.

@vladsavelyev vladsavelyev removed their request for review October 29, 2018 05:55
@vladsavelyev
Copy link
Member

Hmm, wondering why CI has stopped running after new commits.

@bgruening bgruening closed this Oct 29, 2018
@bgruening bgruening reopened this Oct 29, 2018
@bgruening
Copy link
Member

This can happen once in a while. Hope it works now. Thanks!

@epruesse
Copy link
Member Author

It’s been happening a lot lately. In particular when I auto bump. I can’t find anything in the circle API clearly meant to trigger a build. Technically, I could have something check whether the lint is pending and automate the close-reopen. Not very pretty though.

@epruesse
Copy link
Member Author

build/temp.linux-x86_64-2.7/htslib/os/rand.o: In function `hts_srand48':

/opt/conda/conda-bld/cyvcf2_1540852899102/work/htslib/os/rand.c:69: multiple definition of `hts_srand48'

possibly something about static/dynamic linking?

@vladsavelyev
Copy link
Member

My version that's because we are kind of installing htslib twice: first explicitly with configure/make, then implicitly when linking cyvcf2 source together with htslib within setup.py. But if I drop htslib installation from build.sh, it'll still fail at some point.

@epruesse epruesse closed this Nov 11, 2018
@epruesse epruesse reopened this Nov 11, 2018
@epruesse epruesse added autobump-broken recipe broken by autobump and removed help wanted autobump Automatic Version Update labels Nov 18, 2018
@ccwang002
Copy link
Member

I tried a different approach in PR #13726 by patching the setup.py to link to the conda htslib instead of compiling one inside cyvcf2. All the tests passed for 0.10.8 and lets see if this approach can work for the future releases as well.

@epruesse epruesse closed this Apr 22, 2019
@epruesse epruesse deleted the auto_update_cyvcf2 branch April 22, 2019 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autobump-broken recipe broken by autobump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants