-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
25 lines (21 loc) · 834 Bytes
/
setup.py
File metadata and controls
25 lines (21 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env python
# pylint: disable=invalid-name
"""set up mini-caffe"""
from __future__ import absolute_import
import os
from setuptools import setup
current_dir = os.path.dirname(os.path.abspath(__file__))
dll_path = ['../build', '../build/Release']
dll_path = [os.path.join(current_dir, p) for p in dll_path]
if os.name == 'nt':
dll_path = [os.path.join(p, 'caffe.dll') for p in dll_path]
else:
dll_path = [os.path.join(p, 'libcaffe.so') for p in dll_path]
lib_path = [p for p in dll_path if os.path.exists(p) and os.path.isfile(p)]
setup(name='minicaffe',
version='0.4.0',
packages=['minicaffe'],
description=open(os.path.join(current_dir, 'README.md')).read(),
install_requires=['numpy'],
url='https://github.com/luoyetx/mini-caffe',
data_files=[('minicaffe', [lib_path[0]])])