Skip to content

Commit

Permalink
Support python package script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilik Kuo committed Mar 19, 2017
1 parent 7390f8c commit 07933c6
Show file tree
Hide file tree
Showing 102 changed files with 36 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import os
from setuptools import setup, find_packages

package_files_paths = []
def package_files(directory):
global package_files_paths
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
if filename == '.gitignore':
continue
print(filename)
package_files_paths.append(os.path.join('..', path, filename))

package_files('OpenCLGA/ui')
package_files('OpenCLGA/kernel')

setup(name='OpenCLGA',
version='0.1',
description='Run a general purpose genetic algorithm on top of pyopencl.',
url='https://github.com/PyOCL/oclGA.git',
author='John Hu(胡訓誠), Kilik Kuo(郭彥廷)',
author_email='im@john.hu, kilik.kuo@gmail.com',
license='MIT',
include_package_data=True,
packages=find_packages(),
package_data={
'OpenCLGA': package_files_paths,
'OpenCLGA.examples.taiwan_travel': ['kernel/*.c', '*.json'],
},
install_requires=[
'pycparser',
'cffi',
'numpy',
'wheel',
],
zip_safe=False)

0 comments on commit 07933c6

Please sign in to comment.