-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 ta-lib from source if the library is not found #111
Conversation
git-subtree-dir: vendor/ta-lib git-subtree-split: 2ee32d04e2b7686dc0931e17c6a420682c46f3a3
e58f2ea
to
40e18df
Compare
40e18df
to
d3e6df9
Compare
@mrjbq7 You may need to enable the travis service for this repository. And you can also check the CI status of this PR in https://travis-ci.org/mckelvin/python-ta-lib/branches . |
Nice! it could help to bring CI to my Julia wrapper https://github.com/femtotrader/TALib.jl |
I'm back from my trip and would like to get to this soon. Sorry for the silence! |
I don't understand "Better layout for compatibility" commit, can you share what you were trying to improve? |
@mrjbq7 The commit message is a little bit confusing. The basic idea is |
Hi @mrjbq7 , what's the latest status of this PR. I noticed that there're some similar but conflict changes in the upstream. What's your next plan. Continue this PR or re-implement from scratch? Anyway, I'd appreciate if a version of |
@mckelvin I cannot speak for @mrjbq7, but in my opinion, it would be helpful if this PR were broken out: there are too many independent changes going on and this makes it difficult to review the code. I see at least four separate PRs buried in here:
Broken out, it would be much easier to have focussed conversations about the specific reasons for each of your changes. That's my 2 cents. |
@briancappello Can't agree more.Before splitting this large PR, I'd like to know what's happening in the upstream. There're also some tools used for generating code. It seems that @mrjbq7 is trying to use generate code for part of this PR. |
I'd appreciate separate PR's. I'm not sure what you mean by "what's happening in the upstream". If you're referring to the underlying ta-lib C library, I'm not sure. It hasn't seen a release in awhile. If you're referring to this Python wrapper, then I'm all in favor of improvements and upgrades. The |
On the |
Maybe instead of |
Sorry, for small posts - I keep hitting the comment button by habit before finishing. Regarding the vendor subtree. It's a cool idea, but I want to make sure it works on all of our platforms (Windows, Linux, and macOS) if possible. |
Hi @mrjbq7 @briancappello , Sorry about my delayed PRs. I'm going to split this large PR into small ones:
Personally, I'd prefer to pytest, which is helpful to write test with no boilerplate: (
I've tested on Linux and macOS, but currently I don't have Windows environment. I'd appreciate if anyone would help to test under Windows. Since this feature will only be triggered when the TA-Lib C library is not installed. So users installing using the old way should not be effected. |
common
,abstract
,func
,stream
) into one extension (c_ta_lib
) Why? SEE: Trying to build ta-lib from source if the library is not found #110 (comment)git subtree add --prefix vendor/ta-lib https://github.com/TA-Lib/ta-lib.git v0.4.0 --squash
(https://github.com/TA-Lib/ta-lib/releases/tag/v0.4.0)Since there're a few changes of generated files. Please review commit by commit and ignore the commits related to generate code. You can later check the generated cython c files by rerun using Cython 0.24.1 and verify the
vendor/ta-lib
with https://github.com/TA-Lib/[email protected] or http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz and verify usingdiff -rN dir1 dir2
.SEE ALSO: