rajanil / fastStructure

A variational framework for inferring population structure from SNP genotype data.
MIT License
133 stars 51 forks source link

Upload to PyPI #22

Open prehensilecode opened 9 years ago

prehensilecode commented 9 years ago

Would it be possible to upload to PyPI -- https://pypi.python.org/pypi -- so that a "pip install" will install this package?

xguse commented 9 years ago

@prehensilecode There is a problem with this. The fundamental structure of the project does not allow pip install. I am trying to retructure it but the original author did not really seem to value this from the beginning so its a little... interesting for someone who didnt write it originally. Once I get this worked out I will send a pull request, but the author seems to have moved on. There are 3 pull requests un answered at the moment.

I totally agree with you however. Why spend the time to port a bunch of very complicated logic to python, even write the cython code interfaces, just to not spend the extra minimal effort to make sure people can install the dang thing like 99% other python projects are installed?

I have restructured the project and have gotten things to "install" via pip but things like chooseK.py commands are not finding their compiled libs correctly. If you feel like helping I can share my fork branch with you!

Gus

rajanil commented 9 years ago

@xguse Thanks for the effort to modify the code to install via pip. I have been a bit swamped with other projects, and haven't had a chance to work on updates to fastStructure lately.

I haven't installed python packages via pip before, and didn't design fastStructure with this in mind. But, I agree, it seems like a totally reasonable thing to do! Unfortunately, this is not something I can devote time to at the moment. However, if you are able to get it working, happy to help out with eventual testing and merging.

Thanks again! cheers Anil

xguse commented 9 years ago

I am SO happy to hear that! Totally understand being swamped. Let me remind myself where I left things, and I will send you a link to the branch that i am using to work on this! VERY glad to hear that you are interested in this. I think it will make your awesome contribution MUCH easier for people to be able to use!

Gus