@@ -145,7 +145,6 @@ def build_libtorchtrt_pre_cxx11_abi(develop=True, use_dist_dir=True, cxx11_abi=F
145
145
cmd .append ("--platforms=//toolchains:ci_rhel_x86_64_linux" )
146
146
print ("CI based build" )
147
147
148
- cmd .append ("--jobs=4" )
149
148
print ("building libtorchtrt" )
150
149
status_code = subprocess .run (cmd ).returncode
151
150
@@ -357,6 +356,10 @@ def run(self):
357
356
"torch_tensorrt.fx.tools" ,
358
357
"torch_tensorrt.fx.tracer.acc_tracer" ,
359
358
"torch_tensorrt.fx.tracer.dispatch_tracer" ,
359
+ "torch_tensorrt.dynamo" ,
360
+ "torch_tensorrt.dynamo.fx_ts_compat" ,
361
+ "torch_tensorrt.dynamo.fx_ts_compat.passes" ,
362
+ "torch_tensorrt.dynamo.fx_ts_compat.tools" ,
360
363
]
361
364
package_dir = {
362
365
"torch_tensorrt.fx" : "torch_tensorrt/fx" ,
@@ -365,11 +368,47 @@ def run(self):
365
368
"torch_tensorrt.fx.tools" : "torch_tensorrt/fx/tools" ,
366
369
"torch_tensorrt.fx.tracer.acc_tracer" : "torch_tensorrt/fx/tracer/acc_tracer" ,
367
370
"torch_tensorrt.fx.tracer.dispatch_tracer" : "torch_tensorrt/fx/tracer/dispatch_tracer" ,
371
+ "torch_tensorrt.dynamo" : "torch_tensorrt/dynamo" ,
372
+ "torch_tensorrt.dynamo.fx_ts_compat" : "torch_tensorrt/dynamo/fx_ts_compat" ,
373
+ "torch_tensorrt.dynamo.fx_ts_compat.passes" : "torch_tensorrt/dynamo/fx_ts_compat/passes" ,
374
+ "torch_tensorrt.dynamo.fx_ts_compat.tools" : "torch_tensorrt/dynamo/fx_ts_compat/tools" ,
368
375
}
369
376
370
377
with open ("README.md" , "r" , encoding = "utf-8" ) as fh :
371
378
long_description = fh .read ()
372
379
380
+ if FX_ONLY :
381
+ package_data_list = [
382
+ "_Input.py" ,
383
+ ]
384
+ else :
385
+ package_data_list = [
386
+ "lib/*" ,
387
+ "include/torch_tensorrt/*.h" ,
388
+ "include/torch_tensorrt/core/*.h" ,
389
+ "include/torch_tensorrt/core/conversion/*.h" ,
390
+ "include/torch_tensorrt/core/conversion/conversionctx/*.h" ,
391
+ "include/torch_tensorrt/core/conversion/converters/*.h" ,
392
+ "include/torch_tensorrt/core/conversion/evaluators/*.h" ,
393
+ "include/torch_tensorrt/core/conversion/tensorcontainer/*.h" ,
394
+ "include/torch_tensorrt/core/conversion/var/*.h" ,
395
+ "include/torch_tensorrt/core/ir/*.h" ,
396
+ "include/torch_tensorrt/core/lowering/*.h" ,
397
+ "include/torch_tensorrt/core/lowering/passes/*.h" ,
398
+ "include/torch_tensorrt/core/partitioning/*.h" ,
399
+ "include/torch_tensorrt/core/partitioning/segmentedblock/*.h" ,
400
+ "include/torch_tensorrt/core/partitioning/partitioninginfo/*.h" ,
401
+ "include/torch_tensorrt/core/partitioning/partitioningctx/*.h" ,
402
+ "include/torch_tensorrt/core/plugins/*.h" ,
403
+ "include/torch_tensorrt/core/plugins/impl/*.h" ,
404
+ "include/torch_tensorrt/core/runtime/*.h" ,
405
+ "include/torch_tensorrt/core/util/*.h" ,
406
+ "include/torch_tensorrt/core/util/logging/*.h" ,
407
+ "bin/*" ,
408
+ "BUILD" ,
409
+ "WORKSPACE" ,
410
+ ]
411
+
373
412
setup (
374
413
name = "torch_tensorrt" ,
375
414
version = __version__ ,
@@ -413,32 +452,7 @@ def run(self):
413
452
python_requires = ">=3.7" ,
414
453
include_package_data = True ,
415
454
package_data = {
416
- "torch_tensorrt" : [
417
- "lib/*" ,
418
- "include/torch_tensorrt/*.h" ,
419
- "include/torch_tensorrt/core/*.h" ,
420
- "include/torch_tensorrt/core/conversion/*.h" ,
421
- "include/torch_tensorrt/core/conversion/conversionctx/*.h" ,
422
- "include/torch_tensorrt/core/conversion/converters/*.h" ,
423
- "include/torch_tensorrt/core/conversion/evaluators/*.h" ,
424
- "include/torch_tensorrt/core/conversion/tensorcontainer/*.h" ,
425
- "include/torch_tensorrt/core/conversion/var/*.h" ,
426
- "include/torch_tensorrt/core/ir/*.h" ,
427
- "include/torch_tensorrt/core/lowering/*.h" ,
428
- "include/torch_tensorrt/core/lowering/passes/*.h" ,
429
- "include/torch_tensorrt/core/partitioning/*.h" ,
430
- "include/torch_tensorrt/core/partitioning/segmentedblock/*.h" ,
431
- "include/torch_tensorrt/core/partitioning/partitioninginfo/*.h" ,
432
- "include/torch_tensorrt/core/partitioning/partitioningctx/*.h" ,
433
- "include/torch_tensorrt/core/plugins/*.h" ,
434
- "include/torch_tensorrt/core/plugins/impl/*.h" ,
435
- "include/torch_tensorrt/core/runtime/*.h" ,
436
- "include/torch_tensorrt/core/util/*.h" ,
437
- "include/torch_tensorrt/core/util/logging/*.h" ,
438
- "bin/*" ,
439
- "BUILD" ,
440
- "WORKSPACE" ,
441
- ],
455
+ "torch_tensorrt" : package_data_list ,
442
456
},
443
457
exclude_package_data = {
444
458
"" : ["*.cpp" ],
0 commit comments