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
Faiss
Commits
6157f0c0
Commit
6157f0c0
authored
Aug 26, 2024
by
zhanggzh
Browse files
change version code
parent
102f4a30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
faiss/python/setup.py
faiss/python/setup.py
+2
-2
No files found.
faiss/python/setup.py
View file @
6157f0c0
...
@@ -16,7 +16,7 @@ shutil.copytree("contrib", "faiss/contrib")
...
@@ -16,7 +16,7 @@ shutil.copytree("contrib", "faiss/contrib")
shutil
.
copyfile
(
"__init__.py"
,
"faiss/__init__.py"
)
shutil
.
copyfile
(
"__init__.py"
,
"faiss/__init__.py"
)
shutil
.
copyfile
(
"loader.py"
,
"faiss/loader.py"
)
shutil
.
copyfile
(
"loader.py"
,
"faiss/loader.py"
)
shutil
.
copyfile
(
"libfaiss_python_callbacks.so"
,
"faiss/libfaiss_python_callbacks.so"
)
shutil
.
copyfile
(
"libfaiss_python_callbacks.so"
,
"faiss/libfaiss_python_callbacks.so"
)
shutil
.
copyfile
(
"libfaiss.so"
,
"faiss/libfaiss.so"
)
ext
=
".pyd"
if
platform
.
system
()
==
'Windows'
else
".so"
ext
=
".pyd"
if
platform
.
system
()
==
'Windows'
else
".so"
prefix
=
"Release/"
*
(
platform
.
system
()
==
'Windows'
)
prefix
=
"Release/"
*
(
platform
.
system
()
==
'Windows'
)
...
@@ -47,7 +47,7 @@ dtk_version = content.replace('.', '')
...
@@ -47,7 +47,7 @@ dtk_version = content.replace('.', '')
print
(
dtk_version
)
print
(
dtk_version
)
cwd
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
cwd
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
ver_path
=
os
.
path
.
join
(
cwd
,
"faiss"
,
"__init__.py"
)
ver_path
=
os
.
path
.
join
(
cwd
,
"faiss"
,
"__init__.py"
)
with
open
(
ver_path
,
'
w
'
)
as
f
:
with
open
(
ver_path
,
'
a
'
)
as
f
:
f
.
write
(
"__version__ = '1.7.2'
\n
"
)
f
.
write
(
"__version__ = '1.7.2'
\n
"
)
version
=
'1.7.2'
+
'+das.dtk'
+
dtk_version
version
=
'1.7.2'
+
'+das.dtk'
+
dtk_version
f
.
write
(
f
"__dcu_version__ = '
{
version
}
'
\n
"
)
f
.
write
(
f
"__dcu_version__ = '
{
version
}
'
\n
"
)
...
...
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