Question: How did you make transpiled Haxe code to hsluv.py?
medicalwei opened this issue · comments
My intention is to package hsluv-python to Debian due to a dependency, but our policy requires us not to package generated code but to rebuild them.
I tried to run Haxe by myself, and found that the formats of source code are different, although every function looks like having the same structure:
What I found that the function name and packaging are different than generated code, also the format is a lot cleaner and readable, and I think you did not just remove dead code as you said in the header of hsluv.py.
Could you tell me the details about this?
I only used dead code removal as an example of how the Haxe-generated code was cleaned up manually. The clean-up also included variable renaming and formatting changes. There is no way to automatically generate hsluv-python code, so you should definitely just use it as-is. I think for the purpose of the Debian policy, you can consider hsluv.py
to be derived from generated code rather than being generated code.
It would be great to see hsluv-python packaged for Debian, thank you for taking the time to do it :)
Thanks for the explanation! I am closing this issue. If there's any problem regarding to Debian policy and stuff, I might reopen this.