Show More
@@ -557,6 +557,30 b' def require_submodules(command):' | |||||
557 | return DecoratedCommand |
|
557 | return DecoratedCommand | |
558 |
|
558 | |||
559 | #--------------------------------------------------------------------------- |
|
559 | #--------------------------------------------------------------------------- | |
|
560 | # bdist related | |||
|
561 | #--------------------------------------------------------------------------- | |||
|
562 | ||||
|
563 | def get_bdist_wheel(): | |||
|
564 | """Construct bdist_wheel command for building wheels | |||
|
565 | ||||
|
566 | Constructs py2-none-any tag, instead of py2.7-none-any | |||
|
567 | """ | |||
|
568 | class RequiresWheel(Command): | |||
|
569 | def run(self): | |||
|
570 | print("bdist_wheel requires the wheel package") | |||
|
571 | if 'setuptools' not in sys.modules: | |||
|
572 | return RequiresWheel | |||
|
573 | else: | |||
|
574 | try: | |||
|
575 | from wheel.bdist_wheel import bdist_wheel | |||
|
576 | except ImportError: | |||
|
577 | return RequiresWheel | |||
|
578 | class bdist_wheel_tag(bdist_wheel): | |||
|
579 | def get_tag(self): | |||
|
580 | return ('py%i' % sys.version_info[0], 'none', 'any') | |||
|
581 | return bdist_wheel_tag | |||
|
582 | ||||
|
583 | #--------------------------------------------------------------------------- | |||
560 | # Notebook related |
|
584 | # Notebook related | |
561 | #--------------------------------------------------------------------------- |
|
585 | #--------------------------------------------------------------------------- | |
562 |
|
586 |
General Comments 0
You need to be logged in to leave comments.
Login now