setup.py 3.26 KB
Newer Older
1
#!/usr/bin/env python
2 3 4 5
# -*- coding: utf-8 -*-
"""
$Id$

6
Copyright 2010 Lars Kruse <devel@sumpfralle.de>
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Copyright 2010 Arthur Magill

This file is part of PyCAM.

PyCAM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

PyCAM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PyCAM.  If not, see <http://www.gnu.org/licenses/>.
"""
24 25 26 27 28

from distutils.core import setup
import distutils.sysconfig
import glob
import os.path
29 30 31 32
import sys
# add the local pycam source directory to the PYTHONPATH
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src"))
from pycam import VERSION
33 34 35

setup(
    name="pycam",
36
    version=VERSION,
37 38 39 40
    license="GPL v3",
    description="Open Source CAM - Toolpath Generation for 3-Axis CNC machining",
    author="Lode Leroy",
    #author_email="",
41
    provides=["pycam"],
42
    requires=["ode", "gtk", "gtk.gtkgl", "OpenGL"],
43
    url="http://sourceforge.net/projects/pycam",
44
    download_url="http://sourceforge.net/projects/pycam/files",
45
    keywords=["3-axis", "cnc", "cam", "toolpath", "machining", "g-code"],
46 47 48 49
    long_description="""IMPORTANT NOTE: Please read the list of requirements:
http://sourceforge.net/apps/mediawiki/pycam/index.php?title=Requirements
Basically you will need Python, GTK and OpenGL.
""",
50 51 52 53 54 55 56 57 58 59 60 61 62 63
    # 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",
        "Environment :: Win32 (MS Windows)",
        "Environment :: X11 Applications",
        "Intended Audience :: Manufacturing",
        "Operating System :: Microsoft :: Windows",
        "Operating System :: POSIX",
    ],
64
    package_dir={'': 'src'},
65 66
    packages=[
        "pycam",
67 68
        "pycam.Cutters",
        "pycam.Geometry",
69
        "pycam.Importers",
70 71
        "pycam.PathProcessors",
        "pycam.Utils",
72
        "pycam.Exporters",
73 74 75 76 77
        "pycam.Gui",
        "pycam.PathGenerators",
        "pycam.Simulation",
        "pycam.Toolpath",
        "pycam.Physics",
78
    ],
79
    scripts = ['pycam', 'pycam_win32_postinstall.py'],
80
    data_files=[("share/pycam/doc", [
81
            "COPYING.TXT",
82
            "technical_details.txt",
83 84
            "INSTALL.TXT",
            "LICENSE.TXT",
85
            "README.TXT",
86 87
            "Changelog",
            "release_info.txt"]),
88
        ("share/pycam/ui", [
89 90 91
            os.path.join("share", "ui", "pycam-project.ui"),
            os.path.join("share", "ui", "menubar.xml"),
            os.path.join("share", "ui", "logo_gui.png"),
92
            ]),
93 94
        ("share/pycam", [os.path.join("share", "pycam.ico")]),
        ("share/pycam/samples", glob.glob(os.path.join("samples", "*"))),
95 96 97 98
    ],
)

# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4