Skip to content

Commit

Permalink
build in place
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed May 23, 2019
1 parent 8c79133 commit 245fa05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description-file = README.md

[build_ext]
inplace=0
inplace=1

[flake8]
max-line-length=200
Expand Down
18 changes: 0 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# # # # GENERATED FILE -- DO NOT MODIFY # # # #
from setuptools import setup, find_packages
from shutil import copy
from distutils.extension import Extension
from codecs import open
import os
import os.path
import fnmatch

here = os.path.abspath(os.path.dirname(__file__))

Expand All @@ -24,13 +22,6 @@
with open(os.path.join(here, 'requirements.txt'), encoding='utf-8') as f:
requires = f.read().split()


def find(pattern, path):
for root, dirs, files in os.walk(path):
for name in files:
if fnmatch.fnmatch(name, pattern):
return os.path.join(root, name)

setup(
name='aat',
version='0.0.2',
Expand Down Expand Up @@ -74,12 +65,3 @@ def find(pattern, path):
]

)

binding = find('test*.so', 'build')
library = find('_cpp_helpers*.so', 'build')

print("copying test.so")
copy(binding, 'aat')

print("copying _cpp_helpers.so")
copy(library, 'aat/exchanges')

0 comments on commit 245fa05

Please sign in to comment.