We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 220e269 commit da3934eCopy full SHA for da3934e
1 file changed
setup.py
@@ -1,3 +1,19 @@
1
+# https://github.com/ninjaaron/fast-entry_points
2
+# workaround for slow 'pkg_resources' import
3
+#
4
+# NOTE: this only has effect on console_scripts and no speed-up for commands
5
+# under scripts/. Consider stop using scripts and use console_scripts instead
6
7
+# https://stackoverflow.com/questions/18787036/difference-between-entry-points-console-scripts-and-scripts-in-setup-py
8
+try:
9
+ import fastentrypoints
10
+except ImportError:
11
+ from setuptools.command import easy_install
12
+ import pkg_resources
13
+ easy_install.main(['fastentrypoints'])
14
+ pkg_resources.require('fastentrypoints')
15
16
+
17
import glob
18
from setuptools import setup
19
import unittest
0 commit comments