Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
one
spconv
Commits
f22dd9ae
"tests/TestPythonForce.h" did not exist on "2a53088236129e8a85e7d63965d8cce56212ba25"
Commit
f22dd9ae
authored
Oct 27, 2020
by
yan.yan
Browse files
fix setup.py
parent
62359bee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
setup.py
setup.py
+3
-9
No files found.
setup.py
View file @
f22dd9ae
...
...
@@ -19,18 +19,12 @@ SPCONV_FORCE_BUILD_CUDA = os.getenv("SPCONV_FORCE_BUILD_CUDA")
PYTHON_VERSION
=
"{}.{}"
.
format
(
sys
.
version_info
.
major
,
sys
.
version_info
.
minor
)
remove_plus
=
torch
.
__version__
.
find
(
"+dev"
)
remove_dot
=
torch
.
__version__
.
find
(
".dev"
)
remove_device
=
re
.
search
(
r
"(\+|\.)(dev|cu|cpu)"
,
torch
.
__version__
)
PYTORCH_VERSION
=
torch
.
__version__
if
remove_plus
!=
-
1
:
PYTORCH_VERSION
=
torch
.
__version__
[:
remove_plus
]
if
remove_dot
!=
-
1
:
PYTORCH_VERSION
=
torch
.
__version__
[:
remove_dot
]
if
remove_device
is
not
None
:
PYTORCH_VERSION
=
torch
.
__version__
[:
remove_device
.
start
()]
PYTORCH_VERSION
=
list
(
map
(
int
,
PYTORCH_VERSION
.
split
(
"."
)))
PYTORCH_VERSION_NUMBER
=
PYTORCH_VERSION
[
0
]
*
10000
+
PYTORCH_VERSION
[
1
]
*
100
+
PYTORCH_VERSION
[
2
]
class
CMakeExtension
(
Extension
):
def
__init__
(
self
,
name
,
sourcedir
=
''
,
library_dirs
=
[]):
Extension
.
__init__
(
self
,
name
,
sources
=
[],
library_dirs
=
library_dirs
)
...
...
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