Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
TurTLE
TurTLE
Commits
fa94dc49
Commit
fa94dc49
authored
9 years ago
by
Cristian Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
fix version problem
parent
7ab9e013
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bfps/__init__.py
+14
-16
14 additions, 16 deletions
bfps/__init__.py
setup.py
+2
-2
2 additions, 2 deletions
setup.py
with
16 additions
and
18 deletions
bfps/__init__.py
+
14
−
16
View file @
fa94dc49
...
...
@@ -28,23 +28,21 @@ import os
import
subprocess
import
pickle
from
pkg_resources
import
get_distribution
,
DistributionNotFound
import
pkg_resources
try
:
_dist
=
get_distribution
(
'
bfps
'
)
# Normalize case for Windows systems
dist_loc
=
os
.
path
.
normcase
(
os
.
path
.
realpath
(
_dist
.
location
))
here
=
os
.
path
.
normcase
(
__file__
)
if
not
here
.
startswith
(
os
.
path
.
join
(
dist_loc
,
'
bfps
'
)):
# not installed, but there is another version that *is*
header_dir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
here
),
'
cpp
'
)
lib_dir
=
os
.
path
.
dirname
(
here
)
raise
DistributionNotFound
header_dir
=
os
.
path
.
join
(
os
.
path
.
join
(
dist_loc
,
'
bfps
'
),
'
cpp
'
)
lib_dir
=
os
.
path
.
join
(
dist_loc
,
'
bfps
'
)
__version__
=
_dist
.
version
except
DistributionNotFound
:
__version__
=
''
__version__
=
pkg_resources
.
require
(
'
bfps
'
)[
0
].
version
_dist
=
pkg_resources
.
get_distribution
(
'
bfps
'
)
# Normalize case for Windows systems
dist_loc
=
os
.
path
.
normcase
(
os
.
path
.
realpath
(
_dist
.
location
))
here
=
os
.
path
.
normcase
(
__file__
)
if
not
here
.
startswith
(
os
.
path
.
join
(
dist_loc
,
'
bfps
'
)):
# not installed, but there is another version that *is*
header_dir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
here
),
'
cpp
'
)
lib_dir
=
os
.
path
.
dirname
(
here
)
raise
pkg_resources
.
DistributionNotFound
header_dir
=
os
.
path
.
join
(
os
.
path
.
join
(
dist_loc
,
'
bfps
'
),
'
cpp
'
)
lib_dir
=
os
.
path
.
join
(
dist_loc
,
'
bfps
'
)
install_info
=
pickle
.
load
(
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
here
),
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
2
−
2
View file @
fa94dc49
...
...
@@ -130,6 +130,7 @@ class CustomBuild(DistutilsBuild):
compile_bfps_library
()
DistutilsBuild
.
run
(
self
)
# this custom install leads to a broken installation. no idea why...
class
CustomInstall
(
DistutilsInstall
):
def
run
(
self
):
compile_bfps_library
()
...
...
@@ -141,8 +142,7 @@ setup(
name
=
'
bfps
'
,
packages
=
[
'
bfps
'
],
install_requires
=
[
'
numpy>=1.8
'
,
'
h5py>=2.2.1
'
],
cmdclass
=
{
'
install
'
:
CustomInstall
,
'
build
'
:
CustomBuild
},
cmdclass
=
{
'
build
'
:
CustomBuild
},
package_data
=
{
'
bfps
'
:
header_list
+
[
'
../machine_settings.py
'
,
'
libbfps.a
'
,
'
install_info.pickle
'
]},
...
...
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