Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
FastFold
Commits
52c0a2cc
"git@developer.sourcefind.cn:chenpangpang/diffusers.git" did not exist on "6ce01bd647c90edb520aaf2c2aeaf9be144bee75"
Commit
52c0a2cc
authored
Apr 27, 2023
by
zhuwenwen
Browse files
modify version
parent
1f6d6678
Pipeline
#239
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
setup.py
setup.py
+5
-5
No files found.
setup.py
View file @
52c0a2cc
...
@@ -113,19 +113,19 @@ else:
...
@@ -113,19 +113,19 @@ else:
extra_cuda_flags
+
cc_flag
))
extra_cuda_flags
+
cc_flag
))
def
get_sha
(
pytorch_
root
:
Union
[
str
,
Path
])
->
str
:
def
get_sha
(
root
:
Union
[
str
,
Path
])
->
str
:
try
:
try
:
return
subprocess
.
check_output
([
'git'
,
'rev-parse'
,
'HEAD'
],
cwd
=
pytorch_
root
).
decode
(
'ascii'
).
strip
()
return
subprocess
.
check_output
([
'git'
,
'rev-parse'
,
'HEAD'
],
cwd
=
root
).
decode
(
'ascii'
).
strip
()
except
Exception
:
except
Exception
:
return
'Unknown'
return
'Unknown'
def
get_version_add
(
sha
:
Optional
[
str
]
=
None
)
->
str
:
def
get_version_add
(
sha
:
Optional
[
str
]
=
None
)
->
str
:
fastfold_root
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
add_version_path
=
"version.py"
add_version_path
=
"version.py"
if
sha
!=
'Unknown'
:
if
sha
!=
'Unknown'
:
if
sha
is
None
:
if
sha
is
None
:
sha_path
=
os
.
getenv
(
'FASTFOLD_DOWNLOAD_PATH'
,
""
)
sha
=
get_sha
(
fastfold_root
)
sha
=
get_sha
(
sha_path
)
version
=
'git'
+
sha
[:
7
]
version
=
'git'
+
sha
[:
7
]
if
os
.
getenv
(
'FASTFOLD_BUILD_VERSION'
):
if
os
.
getenv
(
'FASTFOLD_BUILD_VERSION'
):
...
@@ -158,5 +158,5 @@ setup(
...
@@ -158,5 +158,5 @@ setup(
ext_modules
=
ext_modules
,
ext_modules
=
ext_modules
,
package_data
=
{
'fastfold'
:
[
'model/fastnn/kernel/cuda_native/csrc/*'
,
'common/stereo_chemical_props.txt'
]},
package_data
=
{
'fastfold'
:
[
'model/fastnn/kernel/cuda_native/csrc/*'
,
'common/stereo_chemical_props.txt'
]},
cmdclass
=
{
'build_ext'
:
BuildExtension
}
if
ext_modules
else
{},
cmdclass
=
{
'build_ext'
:
BuildExtension
}
if
ext_modules
else
{},
install_requires
=
[
'einops'
,
'colossalai'
],
install_requires
=
[
'einops'
],
)
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment