jacobian

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit d6c893f7dabb09e1b3ab6e09cdde4e5d3f47237d
parent ca3b3436b8c1bf263236ec124dc4f3565c803380
Author: David Freifeld <freifeld.david@gmail.com>
Date:   Fri,  7 Aug 2020 14:45:51 -0700

Slowly moving towards smoother python build + install

Diffstat:
Ajacobian/__init__.py | 1+
Ajacobian/setup.py | 22++++++++++++++++++++++
Dsetup.py | 24------------------------
3 files changed, 23 insertions(+), 24 deletions(-)

diff --git a/jacobian/__init__.py b/jacobian/__init__.py @@ -0,0 +1 @@ +from .jacobian import * diff --git a/jacobian/setup.py b/jacobian/setup.py @@ -0,0 +1,22 @@ +# +# setup.py +# Jacobian +# + +from distutils.core import setup + +import sys +if sys.version_info < (3,0): + sys.exit('Sorry, Python < 3.0 is not supported') + +setup( + name = 'cmake_cpp_pybind11', + version = '${PACKAGE_VERSION}', + packages = [ 'jacobian' ], + package_dir = { + '': '${CMAKE_CURRENT_BINARY_DIR}' + }, + package_data = { + '': ['jacobian.cpython-38-darwin.so'] + } +) diff --git a/setup.py b/setup.py @@ -1,24 +0,0 @@ -# -# setup.py -# Jacobian -# -# Created by David Freifeld -# Copyright © 2020 David Freifeld. All rights reserved. -# - -from setuptools import setup, Distribution - -class BinaryDistribution(Distribution): - def has_ext_modules(foo): - return True - -setup( - name='Jacobian', - version='1.0', - description='A library for neural networks.', - packages=['jacobian'], - package_data={ - 'jacobian': ['jacobian.cpython-37m-darwin.so'], - }, - distclass=BinaryDistribution -)