Skip to content

Commit

Permalink
Improve build
Browse files Browse the repository at this point in the history
  • Loading branch information
schoolpost committed Apr 9, 2019
1 parent f364946 commit f3d6753
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -26,12 +26,14 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
archive/

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
*.so

# Installer logs
pip-log.txt
Expand Down
10 changes: 10 additions & 0 deletions setup.py
@@ -1,8 +1,18 @@
from distutils.core import setup, Extension
import os
import shutil

module1 = Extension('bitunpack', sources = ["bitunpack.c","amaze_demosaic_RT.c", "liblj92/lj92.c"], extra_compile_args=['-msse2','-std=gnu99'], extra_link_args=[])


setup ( name = "bitunpack", version = "2.0", description = "Fast bit unpacking functions", ext_modules = [module1])


dirName = 'build/'
listOfFiles = list()
for (dirpath, dirnames, filenames) in os.walk(dirName):
for file in filenames:
if file.endswith('.so'):
shutil.move(os.path.join(dirpath, file), '.')

shutil.rmtree('build/')

0 comments on commit f3d6753

Please sign in to comment.