Skip to content

Commit 3ce1670

Browse files
authored
Merge pull request #11 from gnestor/backport-2066
Remove `npm_components()`
2 parents 9c34b44 + d2f2e7a commit 3ce1670

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

setupbase.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import os
1717
import sys
18+
import shutil
1819

1920
import pipes
2021
from distutils import log
@@ -349,16 +350,6 @@ def should_run_npm(self):
349350
return True
350351
return mtime(self.node_modules) < mtime(pjoin(repo_root, 'package.json'))
351352

352-
def npm_components(self):
353-
"""Stage npm frontend dependencies into components"""
354-
for pkg in ['preact', 'preact-compat', 'proptypes']:
355-
npm_pkg = os.path.join(self.node_modules, pkg)
356-
bower_pkg = os.path.join(self.bower_dir, pkg)
357-
log.info("Staging %s -> %s" % (npm_pkg, bower_pkg))
358-
if os.path.exists(bower_pkg):
359-
shutil.rmtree(bower_pkg)
360-
shutil.copytree(npm_pkg, bower_pkg)
361-
362353
def patch_codemirror(self):
363354
"""Patch CodeMirror until https://github.com/codemirror/CodeMirror/issues/4454 is resolved"""
364355

@@ -393,7 +384,6 @@ def run(self):
393384
raise
394385

395386
self.patch_codemirror()
396-
self.npm_components()
397387
os.utime(self.bower_dir, None)
398388
# update package data in case this created new files
399389
update_package_data(self.distribution)

0 commit comments

Comments
 (0)