dvc94ch / pykicad

Library for working with KiCAD file formats
ISC License
64 stars 18 forks source link

PyPI package doesn't work #3

Closed lukecyca closed 7 years ago

lukecyca commented 7 years ago

Thank you for this project!

When installing with pip install pykicad I get this error:

Collecting pykicad
  Downloading pykicad-0.0.1.tar.gz
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/var/folders/3s/j1dvrg5j2815ndvqnzh1x59r0000gn/T/pip-build-EBmDiK/pykicad/setup.py", line 8, in <module>
        long_description=open('README.md').read(),
    IOError: [Errno 2] No such file or directory: 'README.md'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

      File "<string>", line 20, in <module>

      File "/var/folders/3s/j1dvrg5j2815ndvqnzh1x59r0000gn/T/pip-build-EBmDiK/pykicad/setup.py", line 8, in <module>

        long_description=open('README.md').read(),

    IOError: [Errno 2] No such file or directory: 'README.md'

This is because setup.py is trying to read the README.md file, but it isn't included in the dist tarball. To include it, I think you need to use the package_data arguments.

dvc94ch commented 7 years ago

Fixed! Thanks for reporting it. v0.0.2 should also fix the startup time (was 5s to import the module...).