Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KM3BUU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
simulation
KM3BUU
Commits
c7994dff
Commit
c7994dff
authored
5 years ago
by
Johannes Schumann
Browse files
Options
Downloads
Patches
Plain Diff
Retreive image automatically while package installation
parent
3f727258
No related branches found
No related tags found
1 merge request
!1
Merge python environment
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
requirements.txt
+1
-0
1 addition, 0 deletions
requirements.txt
setup.py
+13
-9
13 additions, 9 deletions
setup.py
with
14 additions
and
9 deletions
requirements.txt
+
1
−
0
View file @
c7994dff
setuptools_scm
spython
This diff is collapsed.
Click to expand it.
setup.py
+
13
−
9
View file @
c7994dff
...
...
@@ -6,11 +6,6 @@ KM3BUU setup script.
"""
from
setuptools
import
setup
,
find_packages
from
setuptools.command.install
import
install
from
setuptools.command.develop
import
develop
from
setuptools.command.egg_info
import
egg_info
PACKAGE_NAME
=
'
km3buu
'
URL
=
'
https://git.km3net.de/simulation/km3buu
'
DESCRIPTION
=
'
GiBUU tools for KM3NeT
'
...
...
@@ -18,13 +13,20 @@ __author__ = 'Johannes Schumann'
__email__
=
'
jschumann@km3net.de
'
import
os
from
setuptools
import
setup
,
find_packages
from
setuptools.command.install
import
install
from
setuptools.command.develop
import
develop
from
setuptools.command.egg_info
import
egg_info
from
spython.main
import
Client
with
open
(
'
requirements.txt
'
)
as
fobj
:
REQUIREMENTS
=
[
l
.
strip
()
for
l
in
fobj
.
readlines
()]
def
_build_image
():
os
.
system
(
'
make buildremote
'
)
docker_url
=
"
docker://docker.km3net.de/simulation/km3buu
"
image_name
=
"
GiBUU.simg
"
Client
.
pull
(
docker_url
,
name
=
image_name
)
class
CustomInstallCmd
(
install
):
...
...
@@ -54,9 +56,11 @@ setup(
packages
=
find_packages
(),
include_package_data
=
True
,
platforms
=
'
any
'
,
cmdclass
=
{
'
install
'
:
CustomInstallCmd
,
'
develop
'
:
CustomDevelopCmd
,
'
egg_info
'
:
CustomEggInfoCmd
},
cmdclass
=
{
'
install
'
:
CustomInstallCmd
,
'
develop
'
:
CustomDevelopCmd
,
'
egg_info
'
:
CustomEggInfoCmd
},
setup_requires
=
[
'
setuptools_scm
'
],
use_scm_version
=
{
'
write_to
'
:
'
{}/version.txt
'
.
format
(
PACKAGE_NAME
),
...
...
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