-
Notifications
You must be signed in to change notification settings - Fork 14
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
Pip pkg #39
Pip pkg #39
Conversation
Just a few problems found. First up, following the instructions from https://test.pypi.org/project/diploSHIC/0.3333/, had this issue:
worked around using conda to install tensorflow and keras. Next problem:
failed workaround:
worked around with this by setting $PathToDiploSHIC to the result of
Also successfully trained a model after these workarounds. |
ack don't follow those directions! pypi is just copying the readme... instead try this in a clean conda env
after install just type
installs and runs on my ubuntu box |
i've put the pip package on the test pypi server only for now |
That is the pip command I used to install. So that's not the issue. Anyway, here is what happens when I do as you say above:
(Warnings omitted from output.) Anyway, seems like the problem could be fixed by adding a shebang to the top of diploSHIC.py. Not sure why/how it works for you! |
Oh nevermind, I see the extra 3 in the version number (nice numbering!). Anyway that seems to take care of it. |
Nice so it's working? |
I think once we merge this change I'll do a full linting with flake8 so we can set up auto testing on GH |
Yep, good to go. |
moving stuff tf2 various updates version linting working on pip working on pip.. version still werking few more paths what about conda?
okay i'm still wrestling with pypi, but i now have a pip package ready to go if you clone and install.. so try something like
|
You guys may want to take a look at #38 while you're at it--it has been open a long time. |
@molpopgen do you know anything about manylinux wheels and pypi? I'm trying to get this PR to auto build and deploy and I think it's nearly there... |
Yeah--see the fwdpy11 actions. But, I think your wheels may not work unless you fix #38, too. Right now, this package is easy to install but very difficult to use end to end. |
Looking quickly over the PR, you may be missing 3 key files: Setup.cfg This project is using deprecated/removed keras/tf API routines (unless those fixes are in this pr), so you need the above files to pin the key dependencies. This is what I mean by your wheels will upload but not work for users. |
So...#38 was closed but this PR doesn't contain the fix. This pr doesnt close that issue without pinning and tests to confirm that the version pinning is correct. |
Tensorflow API updates have been made so this is now compatible with up-to-date tf versions |
So that's great, but you will probably still need requirements/setup files to pin tf and/or keras. These dependencies don't seem that dependable, so you probably want to pin to the current major version of both. |
okay the binary downloads from test.pypi are working just fine from this PR. I'm going to merge this into master and get a versioned release |
starting a PR for a packaged up diploshic. take a look @dschride