@@ -524,6 +524,7 @@ def add_links():
524524class plugin_install (install ):
525525
526526 def run (self ):
527+ helper .uninstall_triton ()
527528 add_links ()
528529 install .run (self )
529530 helper .post_install ()
@@ -532,6 +533,7 @@ def run(self):
532533class plugin_develop (develop ):
533534
534535 def run (self ):
536+ helper .uninstall_triton ()
535537 add_links ()
536538 develop .run (self )
537539 helper .post_install ()
@@ -624,13 +626,19 @@ def get_install_requires():
624626 packages , package_dir , package_data = helper .configure_cambricon_packages_and_data (
625627 packages , package_dir , package_data )
626628
629+ readme_path = os .path .join (get_base_dir (), "README.md" )
630+ with open (readme_path , "r" , encoding = "utf-8" ) as fh :
631+ long_description = fh .read ()
632+
627633setup (
628- name = os .environ .get ("TRITON_WHEEL_NAME" , "triton" ),
629- version = "3.1.0" + os .environ .get ("TRITON_WHEEL_VERSION_SUFFIX" , "" ),
630- author = "Philippe Tillet" ,
631- 632- description = "A language and compiler for custom Deep Learning operations" ,
633- long_description = "" ,
634+ name = os .environ .get ("FLAGTREE_WHEEL_NAME" , "flagtree" ),
635+ version = "0.3.0" + os .environ .get ("FLAGTREE_WHEEL_VERSION_SUFFIX" , "" ),
636+ author = "FlagOS" ,
637+ 638+ description =
639+ "A unified compiler supporting multiple AI chip backends for custom Deep Learning operations, which is forked from triton-lang/triton." ,
640+ long_description = long_description ,
641+ long_description_content_type = "text/markdown" ,
634642 packages = packages ,
635643 package_dir = package_dir ,
636644 entry_points = get_entry_points (),
0 commit comments