sparkfunX / Desktop-PickAndPlace-CHMT36VA

Tools and conversion scripts for the CHM-T36VA Desktop Pick and Place from SparkFun
GNU General Public License v3.0
66 stars 32 forks source link

first version of a setup.py #42

Closed lukh closed 4 years ago

lukh commented 4 years ago

Hi all, I am tired of long paths to invoke the convert.py tools in kicad... Shall we make it a real python package ? In that way it could be installed with pip, pipenv, virtualenv, even distributed on pypi !

I did my best for the setup.py, it keeps the python convert.py call working, and it can be installed on a venv via pipenv (didn't try on my system based install of python)

It can't be installed on pipenv in -e (editor) mode, because of the hierarchy of the project:

The bbest and cleanest options would be to move all the code under kicad2charmhigh folder (in a package mode) and then use automatic setuptools tools to find the package... In that way it would be fully python compliant !

Best, Vivien

nseidle commented 4 years ago

Much appreciated!

FYI - I am not a kicad/python user so I am not able to test these PRs. If you'd like to invite anyone from the community to review these PRs, I'm open to it. Otherwise, I will generally just approve/merge your PRs.

Thanks for making this repo better for kicad folks!