-
Notifications
You must be signed in to change notification settings - Fork 22
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
Allow using netman without installing lxml #191
Comments
I like the idea of a core and separate packages for models |
I like the core package and switches package as well. The other thing is that moving to another package format has some backward compatibility issue. As a workaround to make the project more easily accessible, I suggest that we make sure dependencies are not pinned in the setup.py/requirements.txt . This will allow people to reuse their current environment and be compatible with more projects. PR #192 should be a step in the right direction, and allow you to remove your pip install hack |
I agree with your points, Felix. Having a meta netman package that depend on the splitted packages would allow for a smooth transition. For the record, you can have multiple python modules in the same tree and I think you can publish them separately (subfolders with their own setup.py/setup.cfg is one way it would work). |
Just had a vm that didn't install lxml because it takes more than 512MB of ram to compile |
Currently, netman depends on ncclient and pulls lxml when installing. This is problematic because lxml often has to be compiled. Additionally, the version of lxml used (3.6.1) clashes with Ubuntu Xenial's packaged version (3.5.0). This library is useless when using netman to access switches other than Juniper models.
A workaround is to specify lxml at the same time as installing netman (or a package requiring netman), as such:
pip install lxml==3.5.0 netman
When doing so, pip honors the specific request for lxml and skips the version requirement for netman.
Using the extra dependencies (https://www.python.org/dev/peps/pep-0508/#extras) or different packages for switch model support (that could all use a "core" netman) would be extremely beneficial for external usage.
The text was updated successfully, but these errors were encountered: