Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ji Feng
gcForest
Commits
5dc26d46
Commit
5dc26d46
authored
5 years ago
by
Jonathan Shore
Browse files
Options
Download
Email Patches
Plain Diff
added python package setup, so package can be installed
parent
f33f4c1b
github/fork/tr8dr/master
1 merge request
!76
added python package setup.py for package installation
Pipeline
#1469
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+42
-0
setup.py
with
42 additions
and
0 deletions
+42
-0
setup.py
0 → 100755
+
42
-
0
View file @
5dc26d46
#!/usr/bin/env python
from
distutils.core
import
setup
,
Extension
from
os.path
import
dirname
import
os
import
sys
import
shutil
import
fnmatch
import
numpy
import
site
def
find_package_names
(
basedir
=
'lib'
):
matches
=
[]
for
path
in
(
path
for
path
,
sub
,
files
in
os
.
walk
(
basedir
)
if
'__init__.py'
in
files
):
components
=
path
.
split
(
'/'
)
name
=
'.'
.
join
(
components
[
1
:])
matches
.
append
(
name
)
return
matches
def
find_package_mapping
(
basedir
=
'lib'
):
mapping
=
{}
for
path
in
(
path
for
path
,
sub
,
files
in
os
.
walk
(
basedir
)
if
'__init__.py'
in
files
):
components
=
path
.
split
(
'/'
)
name
=
'.'
.
join
(
components
[
1
:])
mapping
[
name
]
=
path
return
mapping
# now do main setup
setup
(
name
=
'gcforest'
,
version
=
'1.1'
,
description
=
'gcForest implementation'
,
author
=
'Zhi-Hua Zhou '
,
author_email
=
'zhouzh@lamda.nju.edu.cn'
,
packages
=
find_package_names
(),
package_dir
=
find_package_mapping
(),
ext_modules
=
[])
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets