@@ -147,11 +147,19 @@ def create_cmdclass(prerelease_cmd=None, package_data_spec=None,
147
147
We use specs so that we can find the files *after* the build
148
148
command has run.
149
149
The glob patterns can contain at most one '**' per pattern.
150
+
151
+ We use specs so that we can find the files *after* the build
152
+ command has run.
153
+ The glob patterns can contain at most one '**' per pattern.
154
+
150
155
The package data glob patterns should be relative paths from the package
151
156
folder containing the __init__.py file, which is given as the package
152
157
name.
158
+ e.g. `dict(foo=['./bar/*', './baz/**'])`
159
+
153
160
The data files glob patterns should be absolute paths or relative paths
154
161
from the root directory of the repository.
162
+ e.g. `('share/foo/bar', ['pkgname/bizz/*', 'pkgname/baz/**'])`
155
163
"""
156
164
wrapped = [prerelease_cmd ] if prerelease_cmd else []
157
165
if package_data_spec or data_files_spec :
@@ -278,9 +286,6 @@ def recursive_mtime(path, newest=True):
278
286
return mtime (path )
279
287
current_extreme = None
280
288
for dirname , dirnames , filenames in os .walk (path , topdown = False ):
281
- # Don't recurse into node_modules
282
- if 'node_modules' in dirnames :
283
- dirnames .remove ('node_modules' )
284
289
for filename in filenames :
285
290
mt = mtime (pjoin (dirname , filename ))
286
291
if newest : # Put outside of loop?
0 commit comments