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

Remove the dependency of lxml #102

Open
hupili opened this issue Sep 12, 2013 · 1 comment
Open

Remove the dependency of lxml #102

hupili opened this issue Sep 12, 2013 · 1 comment

Comments

@hupili
Copy link
Owner

hupili commented Sep 12, 2013

Just helped a new user on getting SNSAPI up for the first run on his fresh Ubuntu system. I find that installing lxml is no so straightforward. Users should have python-dev and libxslt installed. New users (to Linux and Python) may have difficulty figuring it out.

The solution:

  • Only leave pure Python module in requirements.txt. Guarantee a smooth dependency installation experience via pip.
  • Dynamically load plugin from a config file. Experienced users can choose to enable extra plugins. custom_config.py can be a good place to do this.
@hupili
Copy link
Owner Author

hupili commented Sep 17, 2013

Following is one way to gracefully manage it:

  • a requirements.txt only includes the minimal requirements that would get normal platforms work.
  • a requirements.txt.extra includes extra dependencies required by some platforms, e.g. lxml.

Besides, load requirements.txt in setup.py instead of hardcoding.

This makes sure casual users can do a pip install snsapi smoothly and get hands on in a few minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant