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

refactor XML support to remove lxml requirement #27

Closed
prjemian opened this issue Jan 13, 2015 · 2 comments
Closed

refactor XML support to remove lxml requirement #27

prjemian opened this issue Jan 13, 2015 · 2 comments

Comments

@prjemian
Copy link
Owner

The lxml package is not available in all Python distributions (such as Canopy Express). Consider refactoring to other packages. What features would be lost? pretty_print?

@prjemian
Copy link
Owner Author

It seems that the lxml package is used in spec2nexus with the support for the UXML additions to SPEC at APS beam lines 33ID and 33BM. Since this is developmental, it may be possible to refactor this support to use ElementTree.

The spec.py module has a prettify() method that relies on the lxml package to pretty_print some code. It is possible to do not quite as a good a job with the the minidom package. This is a quality issue and does not have to be a requirement in spec2nexus at this time.

@prjemian
Copy link
Owner Author

Since lxml is only used by the plugin support for UXML which is in development at this time, the code supporting UXML and requiring lxml will be moved out of the mainstream so its development can continue. Requirement for lxml will be dropped in the next release.

prjemian added a commit that referenced this issue Jan 13, 2015
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

No branches or pull requests

1 participant