add setup.py

This commit is contained in:
looooo 2020-01-28 15:36:56 +01:00 committed by realthunder
parent b0a168ff2f
commit 3158b79746
8 changed files with 38 additions and 5 deletions

1
MANIFEST.in Normal file
View File

@ -0,0 +1 @@
recursive-include freecad/asm3/Gui *

View File

@ -0,0 +1 @@
__version__ = "0.10.2"

View File

@ -1,6 +1,9 @@
from collections import namedtuple from collections import namedtuple
import FreeCAD, FreeCADGui, Part import FreeCAD, FreeCADGui, Part
from . import utils, gui from . import utils, gui
try:
from six import with_metaclass
except ImportError:
from .deps import with_metaclass from .deps import with_metaclass
from .utils import objName,cstrlogger as logger, guilogger from .utils import objName,cstrlogger as logger, guilogger
from .proxy import ProxyType, PropertyInfo, propGet, propGetValue from .proxy import ProxyType, PropertyInfo, propGet, propGetValue

View File

@ -2,6 +2,9 @@ from collections import OrderedDict
import FreeCAD, FreeCADGui import FreeCAD, FreeCADGui
from pivy import coin from pivy import coin
from PySide import QtCore, QtGui from PySide import QtCore, QtGui
try:
from six import with_metaclass
except ImportError:
from .deps import with_metaclass from .deps import with_metaclass
from .utils import getElementPos,objName,addIconToFCAD,guilogger as logger from .utils import getElementPos,objName,addIconToFCAD,guilogger as logger
from .proxy import ProxyType from .proxy import ProxyType

View File

@ -1,3 +1,6 @@
try:
from six import with_metaclass
except ImportError:
from .deps import with_metaclass from .deps import with_metaclass
from .system import System, SystemBase, SystemExtension from .system import System, SystemBase, SystemExtension
from .utils import syslogger as logger, objName from .utils import syslogger as logger, objName

View File

@ -1,5 +1,8 @@
from collections import namedtuple from collections import namedtuple
import pprint import pprint
try:
from six import with_metaclass
except ImportError:
from .deps import with_metaclass from .deps import with_metaclass
from .proxy import ProxyType, PropertyInfo from .proxy import ProxyType, PropertyInfo
from .system import System, SystemBase, SystemExtension from .system import System, SystemBase, SystemExtension

View File

@ -1,5 +1,8 @@
import os import os
import FreeCAD import FreeCAD
try:
from six import with_metaclass
except ImportError:
from .deps import with_metaclass from .deps import with_metaclass
from .constraint import cstrName, PlaneInfo, NormalInfo from .constraint import cstrName, PlaneInfo, NormalInfo
from .utils import getIcon, syslogger as logger, objName, project2D, getNormal from .utils import getIcon, syslogger as logger, objName, project2D, getNormal

16
setup.py Normal file
View File

@ -0,0 +1,16 @@
from setuptools import setup
import os
version_path = os.path.join(os.path.abspath(os.path.dirname(__file__)),
"freecad", "asm3", "__init__.py")
with open(version_path) as fp:
exec(fp.read())
setup(name='freecad.asm3',
version=str(__version__),
packages=['freecad',
'freecad.asm3'],
url="https://github.com/realthunder/FreeCAD_assembly3",
description="Experimental attempt for the next generation assembly workbench for FreeCAD ",
install_requires=["six"],
include_package_data=True)