forked from apache/mxnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make python package install more easily
- Loading branch information
Showing
7 changed files
with
75 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dist | ||
*.egg-info | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
MXNet Python Package | ||
==================== | ||
MXNet is a deep learning framework designed for both *efficiency* and *flexibility*. | ||
It allows you to mix the flavours of deep learning programs together to maximize the efficiency and your productivity. | ||
|
||
|
||
Installation | ||
------------ | ||
To install, check [Build Instruction](http://mxnet.readthedocs.org/en/latest/build.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ | |
from . import callback | ||
from . import misc | ||
|
||
__version__ = "0.1.0" | ||
__version__ = base.__version__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# coding: utf-8 | ||
"""Information about mxnet.""" | ||
from __future__ import absolute_import | ||
import os | ||
import platform | ||
|
||
def find_lib_path(): | ||
"""Find MXNet dynamic library files. | ||
Returns | ||
------- | ||
lib_path : list(string) | ||
List of all found path to the libraries | ||
""" | ||
curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__))) | ||
api_path = os.path.join(curr_path, '../../lib/') | ||
dll_path = [curr_path, api_path] | ||
if os.name == 'nt': | ||
if platform.architecture()[0] == '64bit': | ||
dll_path.append(os.path.join(api_path, '../../windows/x64/Release/')) | ||
else: | ||
dll_path.append(os.path.join(api_path, '../../windows/Release/')) | ||
if os.name == 'nt': | ||
dll_path = [os.path.join(p, 'mxnet.dll') for p in dll_path] | ||
else: | ||
dll_path = [os.path.join(p, 'libmxnet.so') for p in dll_path] | ||
lib_path = [p for p in dll_path if os.path.exists(p) and os.path.isfile(p)] | ||
if len(lib_path) == 0: | ||
raise RuntimeError('Cannot find find the files.\n' + | ||
'List of candidates:\n' + str('\n'.join(dll_path))) | ||
return lib_path | ||
|
||
|
||
# current version | ||
__version__ = "0.5.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters