Menu

Setup.py

2010-03-14
2013-03-08
  • Arthur Magill

    Arthur Magill - 2010-03-14

    Hello,

    Firstly, thanks for a neat project! I'm just starting to investigate the code, but this looks like exactly what I wanted. I've recently gained access to an ISEL 4030 3-axis mill, and I hope to learn a little about how to control it, and how to produce parts (I'm completely new to CNC).

    I had a bit of trouble installing pycam (only __init.py__ was being installed), so I took a look at setup.py, and ended up rewriting it. It now works for me (Linux, Debian Squeeze, i386). As I'm not using Windows I removed the py2exe part - I wasn't entirely sure what it was doing.

    If the script is useful for pycam, please feel free to include it (but remember, it's had very little testing!). If you do decide to include it, the author and author_email fields still need filling in.

      Arthur

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    #!/usr/bin/env python
    from distutils.core import setup
    import distutils.sysconfig
    import glob
    import os.path
    setup(
        name="pycam",
        version="0.2.1",
        license="GPL v3",
        description="Open Source CAM - Toolpath Generation for 3-Axis CNC machining",
        #author="",
        #author_email="",
        url="http://sourceforge.net/projects/pycam",
        download_url="http://sourceforge.net/projects/pycam/files/pycam/0.2.1/pycam-0.2.1.tgz/download",
        keywords=["3-axis", "cnc", "cam", "toolpath", "machining", "g-code"],
        # full list of classifiers at:
        #   http://pypi.python.org/pypi?:action=list_classifiers
        classifiers=[
            "Programming Language :: Python",
            "Programming Language :: Python :: 2",
            "Development Status :: 3 - Alpha",
            "License :: OSI Approved :: GNU General Public License (GPL)",
            "Topic :: Scientific/Engineering"
        ],
        packages=[
            "pycam",
            "pycam.Cutters", 
            "pycam.Geometry", 
            "pycam.Importers",
            "pycam.PathProcessors", 
            "pycam.Utils", 
            "pycam.Exporters",
            "pycam.Gui", 
            "pycam.PathGenerators", 
            "pycam.Simulation"
        ],
        data_files=[("share/python-pycam",[
            "COPYING.TXT",
            "HOWTO.TXT",
            "INSTALL.TXT",
            "LICENSE.TXT",
            "README.TXT",
            "Changelog",
            "release_info.txt"]),
            ("share/python-pycam/samples", 
             glob.glob(os.path.join("Samples","STL","*.stl"))),
        ],
    )
    # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
    
     
  • Arthur Magill

    Arthur Magill - 2010-03-14

    I nearly forgot, you also need a MANIFEST.in file:

    include LICENSE.TXT
    include HOWTO.TXT
    include COPYING.TXT
    include README.TXT
    include Changelog
    include release_info.txt
    include pycam.py
    recursive-include pycam *
    recursive-include Samples *
    recursive-include Tests *
    
     
  • Lars

    Lars - 2010-03-16

    thanks a lot for your work on this!

    I committed your changes to the repository and added some more details for the windows distribution build.

    I guess, this was a very good step forward for windows users and for possible future packagers of pycam. I am very pleased :)

    Please check, if you encounter any problems with the current setup.py in trunk (if you can).
    The next release will be out in the next days …

     
  • Arthur Magill

    Arthur Magill - 2010-03-16

    Hi sumpfralle,

    No problem - I'm glad it's useful (it makes a nice change to contribute something, rather than just downlaoding!). I'll try to check out the latest SVN tonight and see how it goes. I'll try and check it out on Windows too, but my GTK+ install seems broken at the mo.  I'm also trying to get to know the pycam code a bit, so hopefully I'll be able to contribute more in the future :-)

    Arthur

     

Log in to post a comment.