Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
camtron
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
kr69sugu
camtron
Commits
bff89b19
Commit
bff89b19
authored
1 year ago
by
Andrews Cordolino Sobral
Browse files
Options
Downloads
Patches
Plain Diff
Changes to update the bgs library and fix the pybgs
parent
d58a0b76
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
LICENSE
+1
-1
1 addition, 1 deletion
LICENSE
MANIFEST.in
+4
-4
4 additions, 4 deletions
MANIFEST.in
modules/pybind11
+1
-1
1 addition, 1 deletion
modules/pybind11
setup.py
+3
-8
3 additions, 8 deletions
setup.py
virtualenv-build-test-publish.sh
+6
-1
6 additions, 1 deletion
virtualenv-build-test-publish.sh
with
15 additions
and
15 deletions
LICENSE
+
1
−
1
View file @
bff89b19
MIT License
Copyright (c) 2012-202
2
Andrews Cordolino Sobral
Copyright (c) 2012-202
4
Andrews Cordolino Sobral
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
This diff is collapsed.
Click to expand it.
MANIFEST.in
+
4
−
4
View file @
bff89b19
include *.txt
prune
src
recursive-include
src
/algorithms *.*
recursive-include
src
/tools *.*
recursive-include
src
/utils *.*
prune
bgslibrary
recursive-include
bgslibrary
/algorithms *.*
recursive-include
bgslibrary
/tools *.*
recursive-include
bgslibrary
/utils *.*
prune wrapper
recursive-include wrapper/python *.*
recursive-include modules *.*
...
...
This diff is collapsed.
Click to expand it.
pybind11
@
c9d32a81
Compare
65bbd4e0
...
c9d32a81
Subproject commit
65bbd4e0b210655a981be91ae2d3daca358f30f8
Subproject commit
c9d32a81f40ad540015814edf13b29980c63e39c
This diff is collapsed.
Click to expand it.
setup.py
+
3
−
8
View file @
bff89b19
...
...
@@ -79,8 +79,7 @@ class InstallCMakeLibs(install_lib, object):
os
.
path
.
splitext
(
_lib
)[
1
]
in
[
"
.dll
"
,
"
.so
"
]
and
not
(
_lib
.
startswith
(
"
python
"
)
or
_lib
.
startswith
(
PACKAGE_NAME
))]
for
lib
in
libs
:
shutil
.
move
(
lib
,
os
.
path
.
join
(
self
.
build_dir
,
os
.
path
.
basename
(
lib
)))
shutil
.
move
(
lib
,
os
.
path
.
join
(
self
.
build_dir
,
os
.
path
.
basename
(
lib
)))
# Mark the libs for installation, adding them to
# distribution.data_files seems to ensure that setuptools' record
# writer appends them to installed-files.txt in the package's egg-info
...
...
@@ -96,9 +95,7 @@ class InstallCMakeLibs(install_lib, object):
# included in the package, but are resultant of the cmake build
# step; depending on the files that are generated from your cmake
# build chain, you may need to modify the below code
self
.
distribution
.
data_files
=
[
os
.
path
.
join
(
self
.
install_dir
,
os
.
path
.
basename
(
lib
))
for
lib
in
libs
]
self
.
distribution
.
data_files
=
[
os
.
path
.
join
(
self
.
install_dir
,
os
.
path
.
basename
(
lib
))
for
lib
in
libs
]
# Must be forced to run after adding the libs to data_files
self
.
distribution
.
run_command
(
"
install_data
"
)
super
(
InstallCMakeLibs
,
self
).
run
()
...
...
@@ -120,9 +117,7 @@ class InstallCMakeScripts(install_scripts, object):
os
.
listdir
(
bin_dir
)
if
os
.
path
.
isdir
(
os
.
path
.
join
(
bin_dir
,
_dir
))]
for
scripts_dir
in
scripts_dirs
:
shutil
.
move
(
scripts_dir
,
os
.
path
.
join
(
self
.
build_dir
,
os
.
path
.
basename
(
scripts_dir
)))
shutil
.
move
(
scripts_dir
,
os
.
path
.
join
(
self
.
build_dir
,
os
.
path
.
basename
(
scripts_dir
)))
# Mark the scripts for installation, adding them to
# distribution.scripts seems to ensure that the setuptools' record
# writer appends them to installed-files.txt in the package's egg-info
...
...
This diff is collapsed.
Click to expand it.
virtualenv-build-test-publish.sh
+
6
−
1
View file @
bff89b19
...
...
@@ -9,7 +9,7 @@ source bgslibrary_env/bin/activate
# Upgrade pip and install required packages numpy and OpenCV
python
-m
pip
install
--upgrade
pip
python
-m
pip
install
wheel
python
-m
pip
install
wheel
setuptools
python
-m
pip
install
numpy
python
-m
pip
install
opencv-python
...
...
@@ -22,7 +22,12 @@ python setup.py install
# Set the PYTHONPATH environment variable to the build directory to access the installed library
# The following line is for Linux
# ubuntu 20
export
PYTHONPATH
=
$PYTHONPATH
:
$PWD
/build/lib.linux-x86_64-cpython-38
# ubuntu 22
export
PYTHONPATH
=
$PYTHONPATH
:
$PWD
/build/lib.linux-x86_64-cpython-310
# ubuntu 24
export
PYTHONPATH
=
$PYTHONPATH
:
$PWD
/build/lib.linux-x86_64-cpython-312
# The following line is for Mac
export
PYTHONPATH
=
$PYTHONPATH
:
$PWD
/build/lib.macosx-11-x86_64-cpython-39
...
...
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