Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.learn.boosting
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.learn.boosting
Commits
8dee3397
Commit
8dee3397
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[setup] Do not build a library to avoid C++ API incompatibilities (see
#2
)
parent
ac051da7
No related branches found
No related tags found
1 merge request
!10
Do not build a library to avoid C++ API incompatibilities (see #2)
Pipeline
#25641
passed
6 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/learn/boosting/__init__.py
+1
-4
1 addition, 4 deletions
bob/learn/boosting/__init__.py
setup.py
+16
-19
16 additions, 19 deletions
setup.py
with
17 additions
and
23 deletions
bob/learn/boosting/__init__.py
+
1
−
4
View file @
8dee3397
# import Libraries of other lib packages
# import Libraries of other lib packages
import
bob.io.base
# import our own Library
import
bob.extension
import
bob.extension
bob
.
extension
.
load_bob_library
(
'
bob.learn.boosting
'
,
__file__
)
import
bob.io.base
# versioning
# versioning
from
bob.learn.boosting
import
version
from
bob.learn.boosting
import
version
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
16
−
19
View file @
8dee3397
...
@@ -23,7 +23,7 @@ bob_packages = ['bob.core', 'bob.io.base']
...
@@ -23,7 +23,7 @@ bob_packages = ['bob.core', 'bob.io.base']
from
setuptools
import
setup
,
find_packages
,
dist
from
setuptools
import
setup
,
find_packages
,
dist
dist
.
Distribution
(
dict
(
setup_requires
=
[
'
bob.extension
'
,
'
bob.blitz
'
]
+
bob_packages
))
dist
.
Distribution
(
dict
(
setup_requires
=
[
'
bob.extension
'
,
'
bob.blitz
'
]
+
bob_packages
))
from
bob.blitz.extension
import
Extension
,
Library
,
build_ext
from
bob.blitz.extension
import
Extension
,
build_ext
from
bob.extension.utils
import
load_requirements
from
bob.extension.utils
import
load_requirements
build_requires
=
load_requirements
()
build_requires
=
load_requirements
()
...
@@ -31,6 +31,11 @@ build_requires = load_requirements()
...
@@ -31,6 +31,11 @@ build_requires = load_requirements()
# Define package version
# Define package version
version
=
open
(
"
version.txt
"
).
read
().
rstrip
()
version
=
open
(
"
version.txt
"
).
read
().
rstrip
()
# Local include directory
import
os
package_dir
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
include_dir
=
os
.
path
.
join
(
package_dir
,
'
bob
'
,
'
learn
'
,
'
boosting
'
,
'
include
'
)
packages
=
[
'
boost
'
]
packages
=
[
'
boost
'
]
boost_modules
=
[
'
system
'
]
boost_modules
=
[
'
system
'
]
...
@@ -78,24 +83,7 @@ setup(
...
@@ -78,24 +83,7 @@ setup(
version
=
version
,
version
=
version
,
packages
=
packages
,
packages
=
packages
,
boost_modules
=
boost_modules
,
boost_modules
=
boost_modules
,
),
include_dirs
=
[
include_dir
],
Library
(
'
bob.learn.boosting.bob_learn_boosting
'
,
[
"
bob/learn/boosting/cpp/LossFunction.cpp
"
,
"
bob/learn/boosting/cpp/JesorskyLoss.cpp
"
,
"
bob/learn/boosting/cpp/StumpMachine.cpp
"
,
"
bob/learn/boosting/cpp/LUTMachine.cpp
"
,
"
bob/learn/boosting/cpp/BoostedMachine.cpp
"
,
"
bob/learn/boosting/cpp/LUTTrainer.cpp
"
,
],
bob_packages
=
bob_packages
,
version
=
version
,
packages
=
packages
,
boost_modules
=
boost_modules
,
),
),
Extension
(
Extension
(
...
@@ -111,11 +99,20 @@ setup(
...
@@ -111,11 +99,20 @@ setup(
"
bob/learn/boosting/boosted_machine.cpp
"
,
"
bob/learn/boosting/boosted_machine.cpp
"
,
"
bob/learn/boosting/lut_trainer.cpp
"
,
"
bob/learn/boosting/lut_trainer.cpp
"
,
"
bob/learn/boosting/cpp/LossFunction.cpp
"
,
"
bob/learn/boosting/cpp/JesorskyLoss.cpp
"
,
"
bob/learn/boosting/cpp/StumpMachine.cpp
"
,
"
bob/learn/boosting/cpp/LUTMachine.cpp
"
,
"
bob/learn/boosting/cpp/BoostedMachine.cpp
"
,
"
bob/learn/boosting/cpp/LUTTrainer.cpp
"
,
],
],
bob_packages
=
bob_packages
,
bob_packages
=
bob_packages
,
version
=
version
,
version
=
version
,
packages
=
packages
,
packages
=
packages
,
boost_modules
=
boost_modules
,
boost_modules
=
boost_modules
,
include_dirs
=
[
include_dir
],
),
),
],
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment