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
ColossalAI
Commits
2445279a
Unverified
Commit
2445279a
authored
Jan 10, 2023
by
Frank Lee
Committed by
GitHub
Jan 10, 2023
Browse files
[setup] refactored setup.py for dependency graph (#2413)
parent
9d432230
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
setup.py
setup.py
+7
-4
No files found.
setup.py
View file @
2445279a
...
...
@@ -144,13 +144,16 @@ if build_cuda_ext:
print
(
f
'===== Building Extension
{
name
}
====='
)
ext_modules
.
append
(
builder_cls
().
builder
())
if
is_nightly
:
# always put not nightly branch as the if branch
# otherwise github will treat colossalai-nightly as the project name
# and it will mess up with the dependency graph insights
if
not
is_nightly
:
version
=
get_version
()
package_name
=
'colossalai'
else
:
# use date as the nightly version
version
=
datetime
.
today
().
strftime
(
'%Y.%m.%d'
)
package_name
=
'colossalai-nightly'
else
:
version
=
get_version
()
package_name
=
'colossalai'
setup
(
name
=
package_name
,
version
=
version
,
...
...
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