Skip to content

Commit 37feb47

Browse files
BarclayIIjermainewang
authored andcommitted
[Release] 0.1.2 updates (#276)
* 0.1.2 release * oops * more fixes on windows * [Bugfix] fix download dir (#275) * fix download dir * add doc for the env var
1 parent 3564fdc commit 37feb47

File tree

7 files changed

+14
-9
lines changed

7 files changed

+14
-9
lines changed

conda/dgl/bld.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ git submodule init
22
git submodule update
33
md build
44
cd build
5-
cmake -DCMAKE_CXX_FLAGS="-DDMLC_LOG_STACK_TRACE=0 -DDGL_EXPORTS" -DCMAKE_MAKE_PROGRAM=mingw32-make .. -G "MSYS Makefiles"
5+
cmake -DCMAKE_CXX_FLAGS="-DDMLC_LOG_STACK_TRACE=0 -DDGL_EXPORTS" -DCMAKE_MAKE_PROGRAM=mingw32-make .. -G "MinGW Makefiles"
66
if errorlevel 1 exit 1
77
mingw32-make
88
if errorlevel 1 exit 1

conda/dgl/meta.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
package:
22
name: dgl
3-
version: "0.1.0"
3+
version: "0.1.2"
44

55
source:
6+
git_rev: 0.1.2
67
git_url: https://github.com/jermainewang/dgl.git
78

89
requirements:
910
build:
1011
- python {{ python }}
1112
- setuptools
1213
- cmake
14+
- git
1315
- m2w64-gcc # [win]
1416
- m2w64-make # [win]
1517
run:

docs/source/env_var.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Environment Variables
33

44
Backend Options
55
---------------
6-
* ``DGLBACKEND``
6+
* ``DGLBACKEND``:
77
* Values: String (default='pytorch')
88
* The backend deep lerarning framework for DGL.
99
* Choices:
@@ -12,9 +12,12 @@ Backend Options
1212

1313
Data Repository
1414
---------------
15-
* ``DGL_REPO``
15+
* ``DGL_REPO``:
1616
* Values: String (default='https://s3.us-east-2.amazonaws.com/dgl.ai/')
1717
* The repository url to be used for DGL datasets and pre-trained models.
1818
* Suggested values:
1919
* 'https://s3.us-east-2.amazonaws.com/dgl.ai/': DGL repo for U.S.
2020
* 'https://s3-ap-southeast-1.amazonaws.com/dgl.ai.asia/': DGL repo for Asia
21+
* ``DGL_DOWNLOAD_DIR``:
22+
* Values: String (default="${HOME}/.dgl")
23+
* The local directory to cache the downloaded data.

include/dgl/runtime/c_runtime_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#endif
3434

3535
// DGL version
36-
#define DGL_VERSION "0.1.0"
36+
#define DGL_VERSION "0.1.2"
3737

3838

3939
// DGL Runtime is DLPack compatible.

python/dgl/_ffi/libinfo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ def find_lib_path(name=None, search_path=None, optional=False):
8787
# We use the version of the incoming release for code
8888
# that is under development.
8989
# The following line is set by dgl/python/update_version.py
90-
__version__ = "0.1.0"
90+
__version__ = "0.1.2"

python/dgl/data/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ def get_download_dir():
158158
dirname : str
159159
Path to the download directory
160160
"""
161-
curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
162-
dirname = os.path.join(curr_path, '../../../_download')
161+
default_dir = os.path.join(os.path.expanduser('~'), '.dgl')
162+
dirname = os.environ.get('DGL_DOWNLOAD_DIR', default_dir)
163163
if not os.path.exists(dirname):
164164
os.makedirs(dirname)
165165
return dirname

python/update_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# current version
1212
# We use the version of the incoming release for code
1313
# that is under development
14-
__version__ = "0.1.0"
14+
__version__ = "0.1.2"
1515

1616
# Implementations
1717
def update(file_name, pattern, repl):

0 commit comments

Comments
 (0)