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

Encode Cython as a setup-time dependency of vowpal porpoise #1

Merged
merged 1 commit into from Jun 19, 2013

Conversation

mattbornski
Copy link
Contributor

Encoding Cython as a setup-time dependency makes it much easer to use vowpal porpoise in nicely packaged distributions.

Without Cython as a setup-time dependency, you might have a requirements.txt with these lines:
Cython
git+http://github.com/josephreisinger/vowpal_porpoise.git#egg=vowpal_porpoise
and try to execute "pip install -r requirements.txt" (or, for instance, push to Heroku and expect it to do so).

Unfortunately the installation process for Cython will not be completed before vowpal porpoise needs it. By specifying Cython as a setup-time dependency in the vowpal porpoise setup.py, Cython will be downloaded and available before it is needed, and you don't have to specify it as a dependency elsewhere. Using my modified setup.py, I can now run "pip install git+http://github.com/josephreisinger/vowpal_porpoise.git#egg=vowpal_porpoise" without any mention of Cython.

…e vowpal porpoise in nicely packaged distributions.

Without Cython as a setup-time dependency, you might have a requirements.txt with these lines:
  Cython
  git+http://github.com/josephreisinger/vowpal_porpoise.git#egg=vowpal_porpoise
and try to execute "pip install -r requirements.txt" (or, for instance, push to Heroku and expect it to do so).

Unfortunately the installation process for Cython will not be completed before vowpal porpoise needs it.  By specifying Cython as a setup-time dependency in the vowpal porpoise setup.py, Cython will be downloaded and available *before* it is needed, and you don't have to specify it as a dependency elsewhere.  Using my modified setup.py, I can now run "pip install git+http://github.com/josephreisinger/vowpal_porpoise.git#egg=vowpal_porpoise" without any mention of Cython.
josephreisinger pushed a commit that referenced this pull request Jun 19, 2013
Encode Cython as a setup-time dependency of vowpal porpoise
@josephreisinger josephreisinger merged commit d12c02f into josephreisinger:master Jun 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants