Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EdosL0Util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SIPS
EdosL0Util
Commits
ea41f971
Commit
ea41f971
authored
9 years ago
by
Bruce Flynn
Browse files
Options
Downloads
Patches
Plain Diff
PyVer support
parent
3dee531e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build.sh
+0
-26
0 additions, 26 deletions
build.sh
edosl0util/__init__.py
+9
-5
9 additions, 5 deletions
edosl0util/__init__.py
setup.py
+5
-0
5 additions, 0 deletions
setup.py
with
14 additions
and
31 deletions
build.sh
deleted
100755 → 0
+
0
−
26
View file @
3dee531e
#!/usr/bin/env bash
function
write_version_file
()
{
# pull version out of setup.py
version
=
$(
grep
version setup.py |
sed
"s,.*'
\(
.*
\)
'.*
$,
\1
,g"
)
cat
<<
EOF
> edosl0util/version.txt
__version__ = '
${
version
}
'
__githash__ = '
$(
git log
--format
=
"%H"
|
head
-n
1
)
'
__patch__ = """
$(
git diff
)
"""
EOF
}
if
[
-z
$1
]
then
echo
"USAGE:
$0
sdist"
fi
case
$1
in
sdist
)
write_version_file
python setup.py sdist
$@
;;
*
)
python setup.py
$@
;;
esac
This diff is collapsed.
Click to expand it.
edosl0util/__init__.py
+
9
−
5
View file @
ea41f971
### PyVer Loader Start
import
os
version
=
os
.
path
.
join
(
os
.
path
.
split
(
__file__
)[
0
],
'
version.txt
'
)
if
os
.
path
.
exists
(
version
):
execfile
(
version
)
del
os
del
version
verfile
=
'
edosl0util/version.txt
'
if
os
.
path
.
exists
(
verfile
):
execfile
(
verfile
)
else
:
__version__
=
'
<unknown>
'
__githash__
=
''
del
verfile
### PyVer Loader End
This diff is collapsed.
Click to expand it.
setup.py
+
5
−
0
View file @
ea41f971
...
...
@@ -8,6 +8,11 @@ setup(
version
=
'
0.6.dev
'
,
zip_safe
=
False
,
packages
=
find_packages
(),
pyver
=
True
,
dependency_links
=
[
'
https://sips.ssec.wisc.edu/eggs/packages
'
],
setup_requires
=
[
'
PyVer
'
,
],
install_requires
=
[
'
h5py
'
,
],
...
...
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